ProvideCustomMarkerAttribute 类

该类及其成员保留供内部使用,不应在代码中使用。 该类用于注册自定义标记类型。 这是公共类,因为在注册包时会使用它来注册标记。

继承层次结构

System.Object
  System.Attribute
    Microsoft.VisualStudio.Shell.RegistrationAttribute
      Microsoft.VisualStudio.Data.Schema.Package.Internal.ProvideCustomMarkerAttribute

命名空间:  Microsoft.VisualStudio.Data.Schema.Package.Internal
程序集:  Microsoft.VisualStudio.Data.Schema.Package(在 Microsoft.VisualStudio.Data.Schema.Package.dll 中)

语法

声明
<AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple := True, Inherited := True)> _
Public NotInheritable Class ProvideCustomMarkerAttribute _
    Inherits RegistrationAttribute
[AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple = true, Inherited = true)]
public sealed class ProvideCustomMarkerAttribute : RegistrationAttribute
[AttributeUsageAttribute(AttributeTargets::Class, AllowMultiple = true, Inherited = true)]
public ref class ProvideCustomMarkerAttribute sealed : public RegistrationAttribute
[<Sealed>]
[<AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple = true, Inherited = true)>]
type ProvideCustomMarkerAttribute =  
    class
        inherit RegistrationAttribute
    end
public final class ProvideCustomMarkerAttribute extends RegistrationAttribute

ProvideCustomMarkerAttribute 类型公开以下成员。

构造函数

  名称 说明
公共方法 ProvideCustomMarkerAttribute 该类及其成员保留供内部使用,不应在代码中使用。

页首

属性

  名称 说明
公共属性 MarkerName 该类及其成员保留供内部使用,不应在代码中使用。
公共属性 MarkerType 该类及其成员保留供内部使用,不应在代码中使用。
公共属性 Package 该类及其成员保留供内部使用,不应在代码中使用。
公共属性 ResId 该类及其成员保留供内部使用,不应在代码中使用。
公共属性 Service 该类及其成员保留供内部使用,不应在代码中使用。
公共属性 TypeId (继承自 RegistrationAttribute。)

页首

方法

  名称 说明
公共方法 Equals 基础结构。返回一个值,该值指示此实例是否与指定的对象相等。 (继承自 Attribute。)
受保护的方法 Finalize 允许对象在“垃圾回收”回收之前尝试释放资源并执行其他清理操作。 (继承自 Object。)
公共方法 GetHashCode 返回此实例的哈希代码。 (继承自 Attribute。)
受保护的方法 GetPackageRegKeyPath (继承自 RegistrationAttribute。)
公共方法 GetType 获取当前实例的 Type。 (继承自 Object。)
公共方法 IsDefaultAttribute 当在派生类中重写时,指示此实例的值是否是派生类的默认值。 (继承自 Attribute。)
公共方法 Match 当在派生类中重写时,返回一个指示此实例是否等于指定对象的值。 (继承自 Attribute。)
受保护的方法 MemberwiseClone 创建当前 Object 的浅表副本。 (继承自 Object。)
公共方法 Register 该类及其成员保留供内部使用,不应在代码中使用。 (重写 RegistrationAttribute.Register(RegistrationAttribute.RegistrationContext)。)
公共方法 ToString 返回表示当前对象的字符串。 (继承自 Object。)
公共方法 Unregister 该类及其成员保留供内部使用,不应在代码中使用。 (重写 RegistrationAttribute.Unregister(RegistrationAttribute.RegistrationContext)。)

页首

显式接口实现

  名称 说明
显式接口实现私有方法 _Attribute.GetIDsOfNames 将一组名称映射为对应的一组调度标识符。 (继承自 Attribute。)
显式接口实现私有方法 _Attribute.GetTypeInfo 检索对象的类型信息,然后可以使用该信息获取接口的类型信息。 (继承自 Attribute。)
显式接口实现私有方法 _Attribute.GetTypeInfoCount 检索对象提供的类型信息接口的数量(0 或 1)。 (继承自 Attribute。)
显式接口实现私有方法 _Attribute.Invoke 提供对某一对象公开的属性和方法的访问。 (继承自 Attribute。)

页首

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。

请参见

参考

Microsoft.VisualStudio.Data.Schema.Package.Internal 命名空间