Skip to content

M_CodeJam_Services_ServiceContainer_GetService

Andrew Koryavchenko edited this page Jun 17, 2018 · 5 revisions

ServiceContainer.GetService Method

Gets the service object of the specified type.

Namespace: CodeJam.Services
Assembly: CodeJam.Blocks (in CodeJam.Blocks.dll) Version: 2.0.0.0

Syntax

C#

public Object GetService(
	Type serviceType
)

VB

Public Function GetService ( 
	serviceType As Type
) As Object

F#

abstract GetService : 
        serviceType : Type -> Object 
override GetService : 
        serviceType : Type -> Object 

Parameters

 

serviceType
Type: System.Type
An object that specifies the type of service object to get.

Return Value

Type: Object
A service object of type serviceType.-or- null if there is no service object of type serviceType.

Implements

IServiceProvider.GetService(Type)

See Also

Reference

ServiceContainer Class
CodeJam.Services Namespace

Clone this wiki locally