EventBindingService.GetService(Type) 方法

定義

從服務提供者取得要求的服務。

protected:
 System::Object ^ GetService(Type ^ serviceType);
protected object GetService (Type serviceType);
protected object? GetService (Type serviceType);
member this.GetService : Type -> obj
Protected Function GetService (serviceType As Type) As Object

參數

serviceType
Type

要擷取的服務類型。

傳回

serviceType 指定的服務參考,如果要求的服務不可用,則為 null

適用於

另請參閱