This documentation is archived and is not being maintained.

ServiceDescriptionImporter.Schemas Property

Gets the XmlSchemas collection contained in the XML Web service to be imported. This property is read-only.

[Visual Basic]
Public ReadOnly Property Schemas As XmlSchemas
[C#]
public XmlSchemas Schemas {get;}
[C++]
public: __property XmlSchemas* get_Schemas();
[JScript]
public function get Schemas() : XmlSchemas;

Property Value

An XmlSchemas object.

Example

[Visual Basic] 
Dim myImporter As New ServiceDescriptionImporter()
' Add the ServiceDescription to the ServiceDescriptionImporter.
myImporter.AddServiceDescription(myServiceDescription, "", "")
Dim myCollection As ServiceDescriptionCollection = _
                                    myImporter.ServiceDescriptions
Console.WriteLine("Style : " + myImporter.Style.ToString())
' Get the XMLSchema related to the ServiceDescriptionImporter.
Dim mySchemas As XmlSchemas = myImporter.Schemas

[C#] 
ServiceDescriptionImporter myImporter = new ServiceDescriptionImporter();
// Add the ServiceDescription to the ServiceDescriptionImporter.
myImporter.AddServiceDescription(myServiceDescription, "", "");
ServiceDescriptionCollection myCollection = 
                             myImporter.ServiceDescriptions;
Console.WriteLine("Style : " + myImporter.Style.ToString());
// Get the XMLSchema related to the ServiceDescriptionImporter.
XmlSchemas mySchemas = myImporter.Schemas;

[C++] 
ServiceDescriptionImporter* myImporter = new ServiceDescriptionImporter();
// Add the ServiceDescription to the ServiceDescriptionImporter.
myImporter->AddServiceDescription(myServiceDescription, S"", S"");
ServiceDescriptionCollection* myCollection =
   myImporter->ServiceDescriptions;
Console::WriteLine(S"Style : {0}",__box( myImporter->Style));
// Get the XMLSchema related to the ServiceDescriptionImporter.
myImporter->Schemas;

[JScript] No example is available for JScript. To view a Visual Basic, C#, or C++ example, click the Language Filter button Language Filter in the upper-left corner of the page.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

ServiceDescriptionImporter Class | ServiceDescriptionImporter Members | System.Web.Services.Description Namespace

Show: