Partilhar via


BaseCodeGeneratorWithSite.GetService Method

Definition

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

Applies to