Often a constraint message needs to be "customized" in a particular context because what appears to be one constraint is indeed two different constraints applied in different contexts.
一条约束消息需要在特定上下文中“自定义”通常是因为,看似是一个约束的内容,实际上是两个适用于不同上下文的不同约束。
For example, when a constraint is violated, you might want to provide a link from the informative message to the field that is primarily responsible for the violation.
例如,当违反条件时,可能希望在信息性消息中提供违反条件的字段的链接。
The Message Key is used for display purposes when the constraint fails.
MessageKey用来显示约束失败的情况。
If the constraint has a message associated with it (through the message Id), the {0} variable in the message is substituted by the context element — unless it is between single quotes.
如果约束使用了一个消息关联(通过消息id),消息中的{0}变量就被上下文的元素所取代——处非它使用单引号括住。
A literal message implies that a schema is utilized to provide a description and constraint for an XML payload in SOAP.
Literal消息表明要使用模式来提供对SOAP中的xml有效负载的描述和约束。
Listing 7 gives the form's source in its entirety, after it has been generated with both the constraint-generation and message-generation options.
清单7给出完整的表单源代码,它是用约束生成和消息生成选项生成的。
Listing 7 gives the form's source in its entirety, after it has been generated with both the constraint-generation and message-generation options.
清单7给出完整的表单源代码,它是用约束生成和消息生成选项生成的。
应用推荐