ServiceRegistration 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
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. |