Udostępnij za pośrednictwem


DiscoveryDocumentReference.WriteDocument(Object, Stream) Metoda

Definicja

Zapisuje przekazany DiscoveryDocument element do przekazanego Streampliku .

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)

Parametry

document
Object

Element DiscoveryDocument do zapisu w pliku stream.

stream
Stream

Element Stream , w którym jest zapisywany serializowany dokument odnajdywania.

Przykłady

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

Dotyczy

Zobacz też