ProvideBindingPathAttribute Class
Definition
Registers a path that should be probed for candidate assemblies at assembly load time.You should use ProvideCodeBaseAttribute instead of ProvideBindingPathAttribute
. Registering a specific assembly location instead of a directory to probe results in better performance.
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
type ProvideBindingPathAttribute = class
inherit RegistrationAttribute
Public NotInheritable Class ProvideBindingPathAttribute
Inherits RegistrationAttribute
- Inheritance
- 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 |
Gets or sets an optional SubPath to set after $PackageFolder$. You can use this property 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. |