ServiceDescriptionImporter.Schemas 属性

定义

获取由其 XmlSchemas 属性使用的 ServiceDescriptionsGets the XmlSchemas used by the ServiceDescriptions property.

public:
 property System::Xml::Serialization::XmlSchemas ^ Schemas { System::Xml::Serialization::XmlSchemas ^ get(); };
public System.Xml.Serialization.XmlSchemas Schemas { get; }
member this.Schemas : System.Xml.Serialization.XmlSchemas
Public ReadOnly Property Schemas As XmlSchemas

属性值

XmlSchemas

一个 XmlSchemas 对象,其中包含 ServiceDescription 集合中的 ServiceDescriptions 实例所使用的 XML 架构。An XmlSchemas object that contains the XML schemas used by the ServiceDescription instances in the ServiceDescriptions collection.

示例

下面的示例演示属性的用法 SchemasThe following example illustrates the use of the Schemas property.

// Report on the service descriptions.
Console::WriteLine( "Importing {0} service descriptions with {1} associated schemas.", importer->ServiceDescriptions->Count, importer->Schemas->Count );
// Report on the service descriptions.
Console.WriteLine("Importing {0} service descriptions with {1} associated schemas.",
                  importer.ServiceDescriptions.Count, importer.Schemas.Count);

适用于