次の方法で共有


ServiceDescription.Write メソッド (XmlWriter)

ServiceDescription を、Web サービス記述言語 (WSDL) ファイルとして XmlWriter に書き込みます。

Overloads Public Sub Write( _
   ByVal writer As XmlWriter _)
[C#]
public void Write(XmlWriterwriter);
[C++]
public: void Write(XmlWriter* writer);
[JScript]
public function Write(
   writer : XmlWriter);

パラメータ

  • writer
    生成された WSDL ファイルを格納している、参照渡しされた XmlWriter

使用例

 
' Create a new XmlTextWriter.
Dim myWriter As New XmlTextWriter("output.wsdl", Encoding.UTF8)
myWriter.Formatting = Formatting.Indented

' Write the WSDL.
myServiceDescription.Write(myWriter)

[C#] 
// Create a new XmlTextWriter object.
     XmlTextWriter myWriter = new XmlTextWriter("output.wsdl",Encoding.UTF8);
     myWriter.Formatting = Formatting.Indented; 

     // Write the WSDL.
     myServiceDescription.Write(myWriter);

[C++] 
// Create a new XmlTextWriter object.
XmlTextWriter* myWriter = new XmlTextWriter(S"output.wsdl",Encoding::UTF8);
myWriter->Formatting = Formatting::Indented; 

// Write the WSDL.
myServiceDescription->Write(myWriter);

[JScript] JScript のサンプルはありません。Visual Basic、C#、および C++ のサンプルを表示するには、このページの左上隅にある言語のフィルタ ボタン 言語のフィルタ をクリックします。

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ

参照

ServiceDescription クラス | ServiceDescription メンバ | System.Web.Services.Description 名前空間 | ServiceDescription.Write オーバーロードの一覧