ProvideBindingPathAttribute 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
此属性注册一个路径,该路径应在程序集加载时探测候选程序集。
例如:[...\VisualStudio$ (Ver) \BindingPaths{5C48C732-5C7F-40f0-87A7-05C4F15BC8C3}] “$PackageFolder$”=“”
这将注册“PackageFolder” (即 pkgdef 文件的位置) 为要探测以加载程序集的目录。
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
- 继承
- 属性
构造函数
ProvideBindingPathAttribute() |
此属性注册一个路径,该路径应在程序集加载时探测候选程序集。 例如:[...\VisualStudio$ (Ver) \BindingPaths{5C48C732-5C7F-40f0-87A7-05C4F15BC8C3}] “$PackageFolder$”=“” 这将注册“PackageFolder” (即 pkgdef 文件的位置) 为要探测以加载程序集的目录。 |
属性
SubPath |
在 $PackageFolder$ 后设置的可选 SubPath。 如果要探测的程序集位于与 pkgdef 文件不同的目录中,则应使用此方法。 |
TypeId |
重写 TypeID 属性,以便让 RegistrationAttribute 派生类与 System.ComponentModel.TypeDescriptor.GetAttributes 一起使用 (...) 。仅当派生自此属性的属性需要对可应用于类的实例使用更好的控件时,它才必须重写此属性。 (继承自 RegistrationAttribute) |
方法
GetPackageRegKeyPath(Guid) |
获取相对于 VSPackage 的应用程序) 注册表根目录 (注册表路径。 (继承自 RegistrationAttribute) |
Register(RegistrationAttribute+RegistrationContext) |
将组件路径注册 (或组件路径的子路径) 作为 VS 的程序集管理器在尝试解析程序集时探测的附加路径。 |
Unregister(RegistrationAttribute+RegistrationContext) |
将组件路径注销为绑定路径 |