XmlSchemaSet.Count 属性

定义

获取 XmlSchemaSet 中逻辑 XML 架构定义语言 (XSD) 架构的数量。Gets the number of logical XML Schema definition language (XSD) schemas in the XmlSchemaSet.

public:
 property int Count { int get(); };
public int Count { get; }
member this.Count : int
Public ReadOnly Property Count As Integer

属性值

XmlSchemaSet 中的逻辑架构数。The number of logical schemas in the XmlSchemaSet.

注解

如果http://www.contoso.com 中有两个Count命名空间的架构,则属性将返回1,因为架构被视为用于验证目的的单个逻辑架构。XmlSchemaSetIf there are two schemas for the namespace http://www.contoso.com in the XmlSchemaSet, the Count property would return 1 because the schemas are treated as a single logical schema for validation purposes. 但是, 如果命名空间http://www.contoso.com/retail的架构导入了http://www.contoso.com/books命名空间的架构, 则该Count属性的值将为2。However, if a schema for the namespace http://www.contoso.com/retail imported a schema for the http://www.contoso.com/books namespace, the value of the Count property would be 2.

适用于