StreamTransferInformation Constructor
Initializes a new instance of the StreamTransferInformation class by using the provided arguments.
Namespace: Microsoft.VisualStudio.TestTools.Execution
Assembly: Microsoft.VisualStudio.QualityTools.ExecutionCommon (in Microsoft.VisualStudio.QualityTools.ExecutionCommon.dll)
Syntax
'Declaration
Public Sub New ( _
context As DataCollectionContext, _
stream As Stream, _
fileName As String, _
closeStream As Boolean _
)
public StreamTransferInformation(
DataCollectionContext context,
Stream stream,
string fileName,
bool closeStream
)
public:
StreamTransferInformation(
DataCollectionContext^ context,
Stream^ stream,
String^ fileName,
bool closeStream
)
new :
context:DataCollectionContext *
stream:Stream *
fileName:string *
closeStream:bool -> StreamTransferInformation
public function StreamTransferInformation(
context : DataCollectionContext,
stream : Stream,
fileName : String,
closeStream : boolean
)
Parameters
- context
Type: Microsoft.VisualStudio.TestTools.Execution.DataCollectionContext
A DataCollectionContext object.
- stream
Type: System.IO.Stream
A Stream object.
- fileName
Type: System.String
The path and file name to use on the client.
- closeStream
Type: System.Boolean
true to close the stream after the transfer.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.