GetService Method
GetService(Type)
Retrieves the service of the specified type.
Declaration
public object GetService(Type serviceType)
Parameters
Type | Name | Description |
---|---|---|
System.Type | serviceType |
Returns
Type | Description |
---|---|
System.Object |
Implements
System.IServiceProvider.GetService(System.Type)