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

このサービスを直接取得できるクライアントを示す値を取得または設定します。 対象ユーザーは、このサービスの取得を許可されているクライアントのセットを拡張するために、ビットごとの OR を組み合わせて使用できます。

Name

サービスの名前を取得します (と Name同じです)。

TypeId

RegistrationAttribute 派生クラスが System.ComponentModel.TypeDescriptor.GetAttributes(...) と連携できるように、TypeID プロパティをオーバーライドします。このプロパティから派生した属性は、クラスに適用できるインスタンスをより適切に制御する必要がある場合にのみ、このプロパティをオーバーライドする必要があります。

(継承元 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)

指定されたコンテキストでこの属性の登録を解除します。

適用対象