ProvideBindingPathAttribute 类

定义

此属性将在程序集加载时注册应为候选程序集探测的路径。

例如: [. ..\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
属性

构造函数

ProvideBindingPathAttribute()

属性

SubPath

要在 $PackageFolder $ 之后设置的可选子路径。 如果要探测的程序集驻留在与 .pkgdef 文件不同的目录中,则应使用此项。

TypeId

获取此属性的当前实例。

(继承自 RegistrationAttribute)

方法

GetPackageRegKeyPath(Guid)

获取与 VSPackage 的应用程序) 的注册表根相关的注册表路径 (。

(继承自 RegistrationAttribute)
Register(RegistrationAttribute+RegistrationContext)

注册组件路径 (或(可选)组件路径的子路径) 作为附加路径,在尝试解析程序集时,VS 的程序集管理器将进行探测。

Unregister(RegistrationAttribute+RegistrationContext)

将组件路径注册为绑定路径

适用于