Share via


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

取得或設定值,指出應該允許哪些用戶端直接取得此服務。 物件可以位或一起展開允許取得此服務的一組用戶端。

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。 如需詳細資訊,請參閱註冊 VSPackages。

SetRegistryValues(RegistrationAttribute+RegistrationContext, RegistrationAttribute+Key)

設定指定登錄機碼中的值。

Unregister(RegistrationAttribute+RegistrationContext)

呼叫以取消註冊這個具有指定內容的屬性。

適用於