共用方式為


DocData.GetService 方法

傳回所要求的服務。

命名空間:  Microsoft.VisualStudio.Modeling.Shell
組件:  Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0 (在 Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0.dll 中)

語法

'宣告
Public Overridable Function GetService ( _
    serviceType As Type _
) As Object
public virtual Object GetService(
    Type serviceType
)

參數

  • serviceType
    型別:System.Type
    所要求的服務型別

傳回值

型別:System.Object
物件,表示所要求的服務

實作

IServiceProvider.GetService(Type)

備註

覆寫這個方法,以提供額外的服務。

.NET Framework 安全性

請參閱

參考

DocData 類別

Microsoft.VisualStudio.Modeling.Shell 命名空間