ExtensionPartManager.GetServiceDescriptor 方法

定义

获取给定服务名字对象的服务描述符。

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

要为其生成描述符的服务名字对象。

extension
ExtensionIdentificationToken

部件所属的可选扩展。

返回

ExtensionPartServiceJsonRpcDescriptor实例。

注解

此处返回的任何自定义实现都必须继承自 ExtensionPartServiceJsonRpcDescriptor 并调用其基类型,以便协定接口聚合正常工作。

适用于