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

覆寫 TypeID 屬性,讓 RegistrationAttribute 衍生類別使用 System.ComponentModel.TypeDescriptor.GetAttributes (...) 。衍生自這個屬性的屬性必須覆寫此屬性,只有在實例上需要更好的控件,才能套用至類別。

(繼承來源 RegistrationAttribute)

方法

GetPackageRegKeyPath(Guid)

取得相對於 VSPackage 應用程式) 之登錄根目錄的登錄路徑 (。

(繼承來源 RegistrationAttribute)
Register(RegistrationAttribute+RegistrationContext)

將元件路徑註冊 (或選擇性地註冊元件路徑的子路徑,) 作為 VS 元件管理員嘗試解析元件時會探查的其他路徑。

Unregister(RegistrationAttribute+RegistrationContext)

將元件路徑取消註冊為系結路徑

適用於