Share via


ProvideBindingPathAttribute クラス

定義

この属性は、アセンブリの読み込み時に候補アセンブリをプローブする必要があるパスを登録します。

例: [...\VisualStudio$(Ver)\BindingPaths{5C48C732-5C7F-40f0-87A7-05C4F15BC8C3}] "$PackageFolder$"=""

これにより、"PackageFolder" (つまり、pkgdef ファイルの場所) が、アセンブリが読み込まれるプローブ対象のディレクトリとして登録されます。

public ref class ProvideBindingPathAttribute sealed : Microsoft::VisualStudio::Shell::RegistrationAttribute
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)]
public sealed class ProvideBindingPathAttribute : Microsoft.VisualStudio.Shell.RegistrationAttribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)>]
type ProvideBindingPathAttribute = class
    inherit RegistrationAttribute
Public NotInheritable Class ProvideBindingPathAttribute
Inherits RegistrationAttribute
継承
ProvideBindingPathAttribute
属性

コンストラクター

ProvideBindingPathAttribute()

この属性は、アセンブリの読み込み時に候補アセンブリをプローブする必要があるパスを登録します。

例: [...\VisualStudio$(Ver)\BindingPaths{5C48C732-5C7F-40f0-87A7-05C4F15BC8C3}] "$PackageFolder$"=""

これにより、"PackageFolder" (つまり、pkgdef ファイルの場所) が、アセンブリが読み込まれるプローブ対象のディレクトリとして登録されます。

プロパティ

SubPath

$PackageFolder$ の後に設定する省略可能な SubPath。 これは、プローブするアセンブリが pkgdef ファイルとは異なるディレクトリに存在する場合に使用する必要があります。

TypeId

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

(継承元 RegistrationAttribute)

メソッド

GetPackageRegKeyPath(Guid)

VSPackage のレジストリ パス (アプリケーションのレジストリ ルートに対する相対パス) を取得します。

(継承元 RegistrationAttribute)
Register(RegistrationAttribute+RegistrationContext)

アセンブリを解決しようとしたときに VS のアセンブリ マネージャーがプローブする追加のパスとして、コンポーネント パス (または必要に応じてコンポーネント パスのサブパス) を登録します。

Unregister(RegistrationAttribute+RegistrationContext)

コンポーネント パスをバインド パスとして登録解除する

適用対象