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 で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
.NET