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
)

매개 변수

  • fileName
    형식: System.String
    클라이언트의 데이터에 사용할 파일 이름입니다.nullNull 참조(Visual Basic의 경우 Nothing)이거나 비어 있을 수 없으며, 잘못된 문자를 포함할 수 없습니다.전체 경로를 포함하지 마십시오.
  • description
    형식: System.String
    파일에 대한 간단한 설명입니다.
  • closeStream
    형식: System.Boolean
    보내기 완료 후 스트림을 자동으로 닫으려면 true이고, 그렇지 않으면 false입니다.

예외

예외 상황
[ArgumentException]

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

[InvalidOperationException]

stream을 읽을 수 없습니다.

.NET Framework 보안

  • 직접 실행 호출자의 경우 완전히 신뢰합니다. 이 멤버는 부분적으로 신뢰할 수 있는 코드에서 사용할 수 없습니다. 자세한 내용은 부분 신뢰 코드에서 라이브러리 사용을 참조하십시오.

참고 항목

참조

DataCollectionSink 클래스

SendStreamAsync 오버로드

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

DataCollectionContext