BaseCodeGeneratorWithSite.GetService Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetService(Guid) |
method to get a service by its GUID |
GetService(Type) |
Method to get a service by its Type |
GetService(Guid)
method to get a service by its GUID
protected:
System::Object ^ GetService(Guid service);
protected object GetService (Guid service);
member this.GetService : Guid -> obj
Protected Function GetService (service As Guid) As Object
Parameters
- service
- Guid
GUID of service to retrieve
Returns
an object that implements the requested service
Applies to
GetService(Type)
Method to get a service by its Type
protected:
System::Object ^ GetService(Type ^ service);
protected:
Platform::Object ^ GetService(Platform::Type ^ service);
protected object GetService (Type service);
member this.GetService : Type -> obj
Protected Function GetService (service As Type) As Object
Parameters
- service
- Type
Type of service to retrieve
Returns
an object that implements the requested service