다음을 통해 공유


DataCollectionSink.SendStreamAsync 메서드 (DataCollectionContext, Stream, String, String, Boolean)

이 메서드에 지정된 매개 변수를 사용하여 DataCollectionSink에 스트림을 보냅니다.

네임스페이스:  Microsoft.VisualStudio.TestTools.Execution
어셈블리:  Microsoft.VisualStudio.QualityTools.ExecutionCommon(Microsoft.VisualStudio.QualityTools.ExecutionCommon.dll)

구문

‘선언
Public Sub SendStreamAsync ( _
    context As DataCollectionContext, _
    stream As Stream, _
    fileName As String, _
    description As String, _
    closeStream As Boolean _
)
public void SendStreamAsync(
    DataCollectionContext context,
    Stream stream,
    string fileName,
    string description,
    bool closeStream
)
public:
void SendStreamAsync(
    DataCollectionContext^ context, 
    Stream^ stream, 
    String^ fileName, 
    String^ description, 
    bool closeStream
)
member SendStreamAsync : 
        context:DataCollectionContext * 
        stream:Stream * 
        fileName:string * 
        description:string * 
        closeStream:bool -> unit
public function SendStreamAsync(
    context : DataCollectionContext, 
    stream : Stream, 
    fileName : String, 
    description : String, 
    closeStream : boolean
)

매개 변수

  • stream
    형식: Stream

    보낼 System.IO.Stream입니다.

  • fileName
    형식: String

    클라이언트의 데이터에 사용할 파일 이름입니다. nullNull 참조(Visual Basic의 경우 Nothing)이거나 비어 있을 수 없으며, 잘못된 문자를 포함할 수 없습니다. 전체 경로를 포함하지 마십시오.

  • description
    형식: String

    파일에 대한 간단한 설명입니다.

  • closeStream
    형식: Boolean

    보내기 완료 후 스트림을 자동으로 닫으려면 true이고, 그렇지 않으면 false입니다.

예외

예외 조건
ArgumentException

fileName이 nullNull 참조(Visual Basic의 경우 Nothing)이거나, 비어 있거나, 예약된 파일 이름 또는 잘못된 문자가 포함되어 있습니다.

InvalidOperationException

stream을 읽을 수 없습니다.

.NET Framework 보안

참고 항목

참조

DataCollectionSink 클래스

SendStreamAsync 오버로드

Microsoft.VisualStudio.TestTools.Execution 네임스페이스

DataCollectionContext