ProvideBindingPathAttribute Class

Definition

This attribute registers a path that should be probed for candidate assemblies at assembly load time.

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

This would register the "PackageFolder" (i.e. the location of the pkgdef file) as a directory to be probed for assemblies to load.

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
Inheritance
ProvideBindingPathAttribute
Attributes

Remarks

For example:

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

"$PackageFolder$"=""

This registers the PackageFolder (that is, the location of the pkgdef file) as a directory to be probed for assemblies to load.

Constructors

ProvideBindingPathAttribute()

Initializes a new instance of the ProvideBindingPathAttribute class.

Properties

SubPath

An optional SubPath to set after $PackageFolder$. This should be used if the assemblies to be probed reside in a different directory than the pkgdef file.

TypeId

Override the TypeID property in order to let the RegistrationAttribute derived classes to work with System.ComponentModel.TypeDescriptor.GetAttributes(...). An attribute derived from this one will have to override this property only if it needs a better control on the instances that can be applied to a class.

(Inherited from RegistrationAttribute)

Methods

GetPackageRegKeyPath(Guid)

Gets the registry path (relative to the registry root of the application) of the VSPackage.

(Inherited from RegistrationAttribute)
Register(RegistrationAttribute+RegistrationContext)

Registers this attribute with the given context.

Unregister(RegistrationAttribute+RegistrationContext)

Unregisters this attribute.

Applies to