ProvideBrokeredServiceAttribute 类

定义

生成 Visual Studio 包的注册,以便在请求指定服务时加载包。

public ref class ProvideBrokeredServiceAttribute : Microsoft::VisualStudio::Shell::RegistrationAttribute
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)]
public class ProvideBrokeredServiceAttribute : Microsoft.VisualStudio.Shell.RegistrationAttribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)>]
type ProvideBrokeredServiceAttribute = class
    inherit RegistrationAttribute
Public Class ProvideBrokeredServiceAttribute
Inherits RegistrationAttribute
继承
ProvideBrokeredServiceAttribute
派生
属性

构造函数

ProvideBrokeredServiceAttribute(String)

初始化 ProvideBrokeredServiceAttribute 类的新实例。

ProvideBrokeredServiceAttribute(String, String)

初始化 ProvideBrokeredServiceAttribute 类的新实例。

字段

AllowGuestClientsRegValue

用于存储安全上下文的注册表值

AudienceRegValue

用于表示服务范围的注册表值

BrokeredServiceRegKey

BrokeredServices 的注册表项

DefaultAudience

Audience默认值。

属性

AllowTransitiveGuestClients

获取或设置一个值,该值指示是否允许来宾客户端以可传递方式获取此服务。 默认情况下, false () ,仅允许所有者访问中转服务。 若要选择加入以允许来宾获取提供的服务,请将此项设置为 true。 通过将此项设置为 true 服务,现在全权负责正确使用 IAuthorizationService 来授权敏感操作。

Audience

获取或设置一个值,该值指示应允许哪些客户端直接获取此服务。 受众可以按位 OR 组合在一起,以扩展允许获取此服务的客户端集。

Name

获取与 .) 相同的 Name服务名称 (

TypeId

重写 TypeID 属性,以便让 RegistrationAttribute 派生类与 System.ComponentModel.TypeDescriptor.GetAttributes 一起使用 (...) 。仅当派生自此属性的属性需要对可应用于类的实例使用更好的控件时,它才必须重写此属性。

(继承自 RegistrationAttribute)
Version

获取或设置与 .) 相同的 Version (提供服务的版本

方法

GetPackageGuid(RegistrationAttribute+RegistrationContext)

获取提供此服务的包的 GUID。

GetPackageRegKeyPath(Guid)

获取相对于 VSPackage 的应用程序) 注册表根目录 (注册表路径。

(继承自 RegistrationAttribute)
GetRegistryRoot(String, Version)

返回注册中转服务的密钥的 VS-hive 相对路径。

Register(RegistrationAttribute+RegistrationContext)

当外部注册工具(如 regpkg.exe)调用时,向给定上下文注册此 VSPackage。 有关详细信息,请参阅注册 VSPackage。

SetRegistryValues(RegistrationAttribute+RegistrationContext, RegistrationAttribute+Key)

设置指定注册表项中的值。

Unregister(RegistrationAttribute+RegistrationContext)

调用以便向给定的上下文撤消注册此属性。

适用于