ClassificationTypeAttribute.ClassificationTypeNames 属性

获取或设置分类类型的名称。

命名空间:  Microsoft.VisualStudio.Text.Classification
程序集:  Microsoft.VisualStudio.Text.Logic(在 Microsoft.VisualStudio.Text.Logic.dll 中)

语法

声明
Public Property ClassificationTypeNames As String
public string ClassificationTypeNames { get; set; }
public:
property String^ ClassificationTypeNames {
    String^ get ();
    void set (String^ value);
}
member ClassificationTypeNames : string with get, set
function get ClassificationTypeNames () : String 
function set ClassificationTypeNames (value : String)

属性值

类型:String
类型名称。

异常

异常 条件
ArgumentNullException

该值为 nullnull 引用(在 Visual Basic 中为 Nothing)。

ArgumentOutOfRangeException

该值是一个空字符串。

备注

该名称必须是唯一的。其他类类型中。 它不能为 nullnull 引用(在 Visual Basic 中为 Nothing) 或空字符串。 所有分类类型的名称区分大小写。

.NET Framework 安全性

请参阅

参考

ClassificationTypeAttribute 类

Microsoft.VisualStudio.Text.Classification 命名空间