Partager via


DiscoveryDocumentReference.WriteDocument(Object, Stream) Méthode

Définition

Écrit le DiscoveryDocument passé dans le Stream passé.

public:
 override void WriteDocument(System::Object ^ document, System::IO::Stream ^ stream);
public override void WriteDocument (object document, System.IO.Stream stream);
override this.WriteDocument : obj * System.IO.Stream -> unit
Public Overrides Sub WriteDocument (document As Object, stream As Stream)

Paramètres

document
Object

DiscoveryDocument à écrire dans stream.

stream
Stream

Stream dans lequel le document de découverte sérialisé est écrit.

Exemples

FileStream^ myFileStream = gcnew FileStream( "Temp::vsdisco",FileMode::OpenOrCreate,FileAccess::Write );
myDiscoveryDocumentReference->WriteDocument( myDiscoveryDocument, myFileStream );
myFileStream->Close();
FileStream myFileStream = new FileStream("Temp.vsdisco",
    FileMode.OpenOrCreate, FileAccess.Write);
myDiscoveryDocumentReference.WriteDocument(
    myDiscoveryDocument, myFileStream);
myFileStream.Close();
Dim myFileStream As New FileStream("Temp.vsdisco", _
     FileMode.OpenOrCreate, FileAccess.Write)
myDiscoveryDocumentReference.WriteDocument( _
     myDiscoveryDocument, myFileStream)
myFileStream.Close()

S’applique à

Voir aussi