LicenseContext.GetService(Type) 方法

定義

如果有可用的服務,則取得所要求的服務。

public:
 virtual System::Object ^ GetService(Type ^ type);
public virtual object GetService (Type type);
public virtual object? GetService (Type type);
abstract member GetService : Type -> obj
override this.GetService : Type -> obj
Public Overridable Function GetService (type As Type) As Object

參數

type
Type

要擷取的服務類型。

傳回

服務的執行個體,或 null (如果找不到服務)。

實作

適用於