DiscoveryDocumentReference.WriteDocument(Object, Stream) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Writes the passed DiscoveryDocument into the passed Stream.
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)
Parameters
- document
- Object
The DiscoveryDocument to write into stream
.
Examples
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()
Applies to
See also
ทํางานร่วมกับเราใน GitHub
แหล่งที่มาสำหรับเนื้อหานี้สามารถพบได้บน GitHub ซึ่งคุณยังสามารถสร้างและตรวจสอบปัญหาและคำขอดึงข้อมูลได้ สำหรับข้อมูลเพิ่มเติม ให้ดูคู่มือผู้สนับสนุนของเรา