LicenseContext.GetService(Type) 方法
定义
获取请求的服务(如果该服务可用的话)。Gets the requested service, if it is available.
public:
virtual System::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
要检索的服务类型。The type of service to retrieve.
返回
该服务的实例;或者如果找不到该服务,则为 null。An instance of the service, or null if the service cannot be found.