Aracılığıyla paylaş


MetadataSection.CreateFromSchema(XmlSchema) Yöntem

Tanım

Belirtilen XmlSchema nesneden bir MetadataSection oluşturur.

public:
 static System::ServiceModel::Description::MetadataSection ^ CreateFromSchema(System::Xml::Schema::XmlSchema ^ schema);
public static System.ServiceModel.Description.MetadataSection CreateFromSchema (System.Xml.Schema.XmlSchema schema);
static member CreateFromSchema : System.Xml.Schema.XmlSchema -> System.ServiceModel.Description.MetadataSection
Public Shared Function CreateFromSchema (schema As XmlSchema) As MetadataSection

Parametreler

schema
XmlSchema

XML Şeması belgesi.

Döndürülenler

MetadataSection Belirtilen XML şemasını içeren bir.

Özel durumlar

Şema şeklindedir null.

Açıklamalar

Xml Şeması belgesi için hızlı bir şekilde bir MetadataSection oluşturmak için bu statik fabrika yöntemini kullanın. Dialect özelliğine değeri XmlSchemaDialect atanır ve özelliğine Identifier XML Şeması belgesinin hedef ad alanının değeri atanır.

Şunlara uygulanır