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 找不到該服務時。

實作

適用於