ProvideBindingPathAttribute 类

定义

此属性注册一个路径,该路径应在程序集加载时探测候选程序集。

例如:[...\VisualStudio\10.0\BindingPaths{5C48C732-5C7F-40f0-87A7-05C4F15BC8C3}] “$PackageFolder$”=“”

这将注册“PackageFolder” (即 pkgdef 文件的位置) 为要探测以加载程序集的目录。

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
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)>]
type ProvideBindingPathAttribute = class
    inherit RegistrationAttribute
Public NotInheritable Class ProvideBindingPathAttribute
Inherits RegistrationAttribute
继承
ProvideBindingPathAttribute
属性

注解

例如:

[...\VisualStudio\10.0\BindingPaths\{5C48C732-5C7F-40f0-87A7-05C4F15BC8C3}]

“$PackageFolder$”=“”

这会注册 PackageFolder (即 pkgdef 文件的位置) 为要探测以加载程序集的目录。

构造函数

ProvideBindingPathAttribute()

初始化 ProvideBindingPathAttribute 类的新实例。

属性

SubPath

在 $PackageFolder$ 后设置的可选 SubPath。 如果要探测的程序集位于与 pkgdef 文件不同的目录中,则应使用此方法。

TypeId

重写 TypeID 属性,以便让 RegistrationAttribute 派生类与 System.ComponentModel.TypeDescriptor.GetAttributes 一起使用 (...) 。仅当派生自此属性的属性需要对可应用于类的实例使用更好的控件时,它才必须重写此属性。

(继承自 RegistrationAttribute)

方法

GetPackageRegKeyPath(Guid)

获取相对于 VSPackage 的应用程序) 注册表根目录 (注册表路径。

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

将此属性注册到给定上下文。

Unregister(RegistrationAttribute+RegistrationContext)

取消注册此属性。

适用于