DiscoveryDocumentReference.ReadDocument メソッド
渡された Stream から探索ドキュメントを読み取って返します。
Overrides Public Function ReadDocument( _
ByVal stream As Stream _) As Object
[C#]
public override object ReadDocument(Streamstream);
[C++]
public: Object* ReadDocument(Stream* stream);
[JScript]
public override function ReadDocument(
stream : Stream) : Object;
パラメータ
- stream
探索ドキュメントの内容を含んでいる Stream 。
戻り値
参照される探索ドキュメントの内容を含んでいる DiscoveryDocument 。
使用例
Dim myUrl As String = "https://localhost/Sample_vb.vsdisco"
Dim myProtocol As New DiscoveryClientProtocol()
Dim myReference As New DiscoveryDocumentReference(myUrl)
Dim myFileStream As Stream = myProtocol.Download(myUrl)
Dim myDiscoveryDocument As DiscoveryDocument = _
CType(myReference.ReadDocument(myFileStream), DiscoveryDocument)
[C#]
string myUrl = "https://localhost/Sample_cs.vsdisco";
DiscoveryClientProtocol myProtocol = new DiscoveryClientProtocol();
DiscoveryDocumentReference myReference = new DiscoveryDocumentReference(myUrl);
Stream myFileStream = myProtocol.Download(ref myUrl);
DiscoveryDocument myDiscoveryDocument =
(DiscoveryDocument)myReference.ReadDocument(myFileStream);
[C++]
String* myUrl = S"https://localhost/Sample_cs.vsdisco";
DiscoveryClientProtocol* myProtocol = new DiscoveryClientProtocol();
DiscoveryDocumentReference* myReference = new DiscoveryDocumentReference(myUrl);
Stream* myFileStream = myProtocol->Download((&myUrl));
DiscoveryDocument* myDiscoveryDocument =
dynamic_cast<DiscoveryDocument*>(myReference->ReadDocument(myFileStream));
[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 ファミリ
参照
DiscoveryDocumentReference クラス | DiscoveryDocumentReference メンバ | System.Web.Services.Discovery 名前空間 | DiscoveryDocument | Stream | DiscoveryClientProtocol | ReadAll