DiscoveryDocumentReference.ReadDocument(Stream) Yöntem

Tanım

Geçirilen Streambelgeden bulma belgesini okur ve döndürür.

C#
public override object ReadDocument (System.IO.Stream stream);

Parametreler

stream
Stream

Stream bulma belgesini içerir.

Döndürülenler

DiscoveryDocument Başvurulan bulma belgesinin içeriğini içeren.

Örnekler

C#
string myUrl = "http://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);

Şunlara uygulanır

Ürün Sürümler
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

Ayrıca bkz.