ServiceRegistration 类

定义

public ref class ServiceRegistration
[System.Diagnostics.DebuggerDisplay("{DebuggerDisplay}")]
public class ServiceRegistration
[<System.Diagnostics.DebuggerDisplay("{DebuggerDisplay}")>]
type ServiceRegistration = class
Public Class ServiceRegistration
继承
ServiceRegistration
属性

构造函数

ServiceRegistration(ServiceAudience, Object, Boolean)

属性

AllowGuestClients

获取一个值,该值指示此服务是否向非所有者客户端公开。

Audience

获取此服务的目标受众。

DebuggerDisplay
ProfferingPackageId

获取要加载的包的 ID,以便将此服务实际提供。

方法

LoadProfferingPackageAsync(CancellationToken)

如果服务尚未提供,则触发 Microsoft.VisualStudio.Shell.ServiceBroker.IBrokeredServiceContainer.Proffer(Microsoft.ServiceHub.Framework.ServiceRpcDescriptor,Microsoft.VisualStudio.Shell.ServiceBroker.BrokeredServiceFactory) 此注册所表示的服务的调用。

ToString()

Returns a string that represents the current object.

适用于