共用方式為


ExtensionPartManager.GetServiceDescriptor 方法

定義

取得指定服務Moniker的服務描述元。

protected virtual Microsoft.Internal.VisualStudio.Extensibility.Framework.ExtensionPartServiceJsonRpcDescriptor GetServiceDescriptor (Microsoft.ServiceHub.Framework.ServiceMoniker serviceMoniker, Microsoft.VisualStudio.RpcContracts.Extensibility.ExtensionIdentificationToken? extension);
abstract member GetServiceDescriptor : Microsoft.ServiceHub.Framework.ServiceMoniker * Microsoft.VisualStudio.RpcContracts.Extensibility.ExtensionIdentificationToken -> Microsoft.Internal.VisualStudio.Extensibility.Framework.ExtensionPartServiceJsonRpcDescriptor
override this.GetServiceDescriptor : Microsoft.ServiceHub.Framework.ServiceMoniker * Microsoft.VisualStudio.RpcContracts.Extensibility.ExtensionIdentificationToken -> Microsoft.Internal.VisualStudio.Extensibility.Framework.ExtensionPartServiceJsonRpcDescriptor
Protected Overridable Function GetServiceDescriptor (serviceMoniker As ServiceMoniker, extension As ExtensionIdentificationToken) As ExtensionPartServiceJsonRpcDescriptor

參數

serviceMoniker
ServiceMoniker

要為其產生描述元的服務Moniker。

extension
ExtensionIdentificationToken

元件所屬的選擇性延伸模組。

傳回

ExtensionPartServiceJsonRpcDescriptor實例。

備註

這裡傳回的任何自定義實作都必須繼承自 ExtensionPartServiceJsonRpcDescriptor 並呼叫其基底類型,以允許合約介面匯總正常運作。

適用於