DiscoveryDocumentReference.WriteDocument(Object, Stream) Método

Definição

Grava o DiscoveryDocument passado no Stream passado.

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)

Parâmetros

document
Object

O DiscoveryDocument a gravar no stream.

stream
Stream

O Stream em que o documento de descoberta serializado é gravado.

Exemplos

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()

Aplica-se a

Confira também