Click or drag to resize
ProvideBindingPathAttribute Class
Registers a path that should be probed for candidate assemblies at assembly load time.
Inheritance Hierarchy

Namespace: Tvl.VisualStudio.Shell
Assembly: Tvl.VisualStudio.Shell.Utility.10 (in Tvl.VisualStudio.Shell.Utility.10.dll) Version: 1.0.0.0
Syntax
public sealed class ProvideBindingPathAttribute : RegistrationAttribute

The ProvideBindingPathAttribute type exposes the following members.

Constructors
  NameDescription
Public methodProvideBindingPathAttribute
Initializes a new instance of the ProvideBindingPathAttribute class
Top
Methods
  NameDescription
Public methodEquals
Returns a value that indicates whether this instance is equal to a specified object.
(Inherited from Attribute.)
Public methodGetHashCode
Returns the hash code for this instance.
(Inherited from Attribute.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIsDefaultAttribute
When overridden in a derived class, indicates whether the value of this instance is the default value for the derived class.
(Inherited from Attribute.)
Public methodMatch
When overridden in a derived class, returns a value that indicates whether this instance equals a specified object.
(Inherited from Attribute.)
Public methodRegister (Overrides RegistrationAttributeRegister(RegistrationAttributeRegistrationContext).)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUnregister (Overrides RegistrationAttributeUnregister(RegistrationAttributeRegistrationContext).)
Top
Properties
  NameDescription
Public propertyTypeId (Inherited from RegistrationAttribute.)
Top
Remarks
Note 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.

C#
// This attribute is placed on a class due to a limitation in the Visual Studio 2010 SDK.
[ProvideBindingPath]
internal sealed class RegistrationClass { }
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also