SrgsRule.Id 属性

定义

获取或设置规则的标识符。Gets or sets the identifier for the rule.

public:
 property System::String ^ Id { System::String ^ get(); void set(System::String ^ value); };
public string Id { get; set; }
member this.Id : string with get, set
Public Property Id As String

属性值

String

规则的标识符。The identifier for the rule.

例外

尝试将 Id 设置为无效值。An attempt is made to set Id to an invalid value.

注解

规则的标识符是一个字符串,其中包含规则的名称。The identifier for a rule is a string that contains the name of the rule.

用于设置的值 Id 必须遵循以下规则:A value used to set Id must adhere to the following rules:

  • 该值必须是有效的 XML 名称,如 可扩展标记语言 (XML) 1.0 (第五版) 所定义。The value must be a valid XML name, as defined in Extensible Markup Language (XML) 1.0 (Fifth Edition). 若要解释此定义,有效的 XML 名称必须以字母开头,下划线 ( "" ) ,或使用冒号 ( ":" ) 并且可以后跟零个或多个 NameChar 字符,这些字符也 (XML 规范) 中定义。To paraphrase this definition, a valid XML name must begin with a letter, an underscore (''), or a colon (':') and can be followed by zero or more NameChar characters (also defined in the XML specification).

  • 该值可以是 "NULL" 或 "VOID" 或 "垃圾"。The value can be "NULL" or "VOID" or "GARBAGE".

  • 该值不能包含任何无效的规则 ID 字符。The value cannot contain any invalid rule ID character. 这些字符是: "?"、"*"、"+","|"、" ("、") "、"^"、"$"、"/"、";"、"."、"="、" <', '> "、"["、"]"、"{"、"}"、" \ \ "、""、"\t"、"\r" 和 "\n"。These characters are: '?', '*', '+', '|', '(', '), '^', '$', '/', ';', '.', '=', '<', '>', '[', ']', '{', '}', '\\', ' ', '\t', '\r', and '\n'.

适用于