ProvideBindingPathAttribute Class |
Namespace: Tvl.VisualStudio.Shell
The ProvideBindingPathAttribute type exposes the following members.
Name | Description | |
---|---|---|
ProvideBindingPathAttribute | Initializes a new instance of the ProvideBindingPathAttribute class |
Name | Description | |
---|---|---|
Equals | Returns a value that indicates whether this instance is equal to a specified object. (Inherited from Attribute.) | |
GetHashCode | Returns the hash code for this instance. (Inherited from Attribute.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
IsDefaultAttribute | When overridden in a derived class, indicates whether the value of this instance is the default value for the derived class. (Inherited from Attribute.) | |
Match | When overridden in a derived class, returns a value that indicates whether this instance equals a specified object. (Inherited from Attribute.) | |
Register | (Overrides RegistrationAttributeRegister(RegistrationAttributeRegistrationContext).) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
Unregister | (Overrides RegistrationAttributeUnregister(RegistrationAttributeRegistrationContext).) |
Name | Description | |
---|---|---|
TypeId | (Inherited from RegistrationAttribute.) |
Note |
---|
This attribute may only be used in an assembly which has a GuidAttribute applied to the assembly. |
This attribute registers a path that should be probed for candidate assemblies at assembly load time. For example, the following would register the "PackageFolder" (i.e. the location of the pkgdef file) as a directory to be probed for assemblies to load.
[...\VisualStudio\10.0\BindingPaths\{5C48C732-5C7F-40f0-87A7-05C4F15BC8C3}] "$PackageFolder$"=""
Extensions which are compiled using Visual Studio 2012+ may apply this attribute to the assembly. Extensions which are compiled using Visual Studio 2010 (including for testing purposes) must apply this attribute to a class. In either case, the output produced by the attribute is equivalent.
// This attribute is placed on a class due to a limitation in the Visual Studio 2010 SDK. [ProvideBindingPath] internal sealed class RegistrationClass { }