更新:2007 年 11 月
定义用于为系统定义模型 (SDM) 定义中的成员提供简单名称的值。例如,可以使用简单名称命名设置中的某个方面。
<xs:simpleType name="SimpleName">
<xs:restriction
base="string"
>
<xs:pattern
value="[_\p{Ll}\p{Lu}\p{Lt}\p{Lm}\p{Lo}\p{Nl}]{1}[\w\p{Lm}\p{Nl}\p{Cf}\p{Mn}\p{Mc}]*"
/>
</xs:restriction>
</xs:simpleType>
模式
下面的模式由 SimpleName 简单类型定义:
[_\p{Ll}\p{Lu}\p{Lt}\p{Lm}\p{Lo}\p{Nl}]{1}[\w\p{Lm}\p{Nl}\p{Cf}\p{Mn}\p{Mc}]*
简单名称由字母数字字符和有限的标点符号组成。该名称必须以非数字字符开头。
备注
下面的列表包含在为 SDM 定义中的成员创建名称时不能使用的保留名称。
this
Guest
Host
Parent
Member
Client
Server
Source
Dependent
Proxy
Delegate
请注意,SimpleName Simple Type符合 C# 标识符规范。