Type.IsUnicodeClass 属性
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取一个值,该值指示是否为 UnicodeClass
选择了字符串格式属性 Type。
public:
property bool IsUnicodeClass { bool get(); };
C#
public bool IsUnicodeClass { get; }
member this.IsUnicodeClass : bool
Public ReadOnly Property IsUnicodeClass As Boolean
如果为 true
选择了字符串格式属性 UnicodeClass
,则为 Type;否则为 false
。
StringFormatMask用于选择字符串格式特性。 字符串格式特性通过定义应如何解释字符串来增强互操作性。
如果当前 Type 表示构造泛型类型,则此属性应用于构造该类型的泛型类型定义。 例如,如果当前 Type 表示 MyGenericType<int>
MyGenericType(Of Integer)
Visual Basic) 中 (,则此属性的值由确定 MyGenericType<T>
。
如果当前 Type 表示泛型类型或泛型方法的定义中的类型参数,则此属性始终返回 false
。
产品 | 版本 |
---|---|
.NET | Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7 |
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8 |
.NET Standard | 2.0, 2.1 |