CollectionEditor.GetService(Type) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
如果有服務,他會得到所要求的服務。
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
要找回的服務類型。
傳回
服務實例,或 null 找不到該服務時。