DesignerSerializationManager.GetService(Type) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
得到所要求的服務。
protected:
virtual System::Object ^ GetService(Type ^ serviceType);
protected virtual object GetService(Type serviceType);
protected virtual object? GetService(Type serviceType);
abstract member GetService : Type -> obj
override this.GetService : Type -> obj
Protected Overridable Function GetService (serviceType As Type) As Object
參數
- serviceType
- Type
要找回的服務類型。
傳回
請求的服務,或 null 是無法解決的服務。
備註
此 GetService 方法提供存取建構子中設定的底層容器或服務提供者。