Sdílet prostřednictvím


ProvideBindingPathAttribute Třída

Definice

Tento atribut registruje cestu, která by měla být prohledány pro kandidáty sestavení v době načtení sestavení.

Příklad: [...\VisualStudio\10.0\BindingPaths{5C48C732-5C7F-40f0-87A7-05C4F15BC8C3}] "$PackageFolder$"=""

Tím se "PackageFolder" (tj. umístění souboru pkgdef) zaregistruje jako adresář, který má být prohledán pro sestavení k načtení.

public ref class ProvideBindingPathAttribute sealed : Microsoft::VisualStudio::Shell::RegistrationAttribute
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
Dědičnost
ProvideBindingPathAttribute
Atributy

Poznámky

Příklad:

[...\VisualStudio\10.0\BindingPaths\{5C48C732-5C7F-40f0-87A7-05C4F15BC8C3}]

"$PackageFolder$"=""

Tím se packageFolder (tj. umístění souboru pkgdef) zaregistruje jako adresář, který má být prohledán pro načtení sestavení.

Konstruktory

ProvideBindingPathAttribute()

Inicializuje novou instanci ProvideBindingPathAttribute třídy .

Vlastnosti

SubPath

Volitelná dílčí cesta, která se má nastavit po $PackageFolder$. Toto by mělo být použito, pokud se sestavení, která se mají prohledávat, nacházejí v jiném adresáři než soubor pkgdef.

TypeId

Přepište vlastnost TypeID, aby odvozené třídy RegistrationAttribute fungovaly se System.ComponentModel.TypeDescriptor.GetAttributes(...). Atribut odvozený z tohoto atributu bude muset přepsat tuto vlastnost pouze v případě, že potřebuje lepší kontrolu nad instancemi, které lze použít na třídu.

(Zděděno od RegistrationAttribute)

Metody

GetPackageRegKeyPath(Guid)

Získá cestu registru (vzhledem ke kořenovému adresáři registru aplikace) VSPackage.

(Zděděno od RegistrationAttribute)
Register(RegistrationAttribute+RegistrationContext)

Zaregistruje tento atribut s daným kontextem.

Unregister(RegistrationAttribute+RegistrationContext)

Zruší registraci tohoto atributu.

Platí pro