StreamTransferInformation 构造函数

使用提供的参数初始化 StreamTransferInformation 类的新实例。

命名空间:  Microsoft.VisualStudio.TestTools.Execution
程序集:  Microsoft.VisualStudio.QualityTools.ExecutionCommon(在 Microsoft.VisualStudio.QualityTools.ExecutionCommon.dll 中)

语法

声明
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
)

参数

  • fileName
    类型:System.String
    要在客户端上使用的路径和文件名。
  • closeStream
    类型:System.Boolean
    如果在传输后关闭流,则为 true。

.NET Framework 安全性

请参见

参考

StreamTransferInformation 类

Microsoft.VisualStudio.TestTools.Execution 命名空间