Share via


WAProvideLanguagePropertyAttribute 类

定义

此类可用于注册项目的 Web 应用程序属性

public ref class WAProvideLanguagePropertyAttribute sealed : Microsoft::VisualStudio::Shell::RegistrationAttribute
public ref class WAProvideLanguagePropertyAttribute sealed : Microsoft::VisualStudio::Shell::RegistrationAttribute
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)]
public sealed class WAProvideLanguagePropertyAttribute : Microsoft.VisualStudio.Shell.RegistrationAttribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)>]
type WAProvideLanguagePropertyAttribute = class
    inherit RegistrationAttribute
Public NotInheritable Class WAProvideLanguagePropertyAttribute
Inherits RegistrationAttribute
继承
WAProvideLanguagePropertyAttribute
属性

构造函数

WAProvideLanguagePropertyAttribute(Type, String, Boolean)

初始化 WAProvideLanguagePropertyAttribute 的新实例。

WAProvideLanguagePropertyAttribute(Type, String, Int32)

初始化 WAProvideLanguagePropertyAttribute 的新实例。

WAProvideLanguagePropertyAttribute(Type, String, String)

初始化 WAProvideLanguagePropertyAttribute 的新实例。

WAProvideLanguagePropertyAttribute(Type, String, Type)

初始化 WAProvideLanguagePropertyAttribute 的新实例。

属性

LanguageTemplateFactoryType

获取语言模板工厂的类型。

PropertyName

获取属性的名称。

PropertyValueInt

获取 属性的整数值。

PropertyValueString

获取 属性的字符串值。

TypeId

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

(继承自 RegistrationAttribute)

方法

GetPackageRegKeyPath(Guid)

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

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

注册语言属性。

Unregister(RegistrationAttribute+RegistrationContext)

取消注册语言属性。

适用于