Process..::.CancelOutputRead Method

来源:互联网 发布:淘宝怎么清除缓存 编辑:程序博客网 时间:2024/06/03 18:12

转自http://technet.microsoft.com/zh-cn/magazine/system.diagnostics.process.canceloutputread(VS.110).aspx、

ancelOutputRead 方法
查看内容:  双语对照查看内容: 双语对照
此为机器翻译内容,社区成员可对其进行编辑。我们十分希望您能单击与以下任一句子关联的“编辑”链接,对翻译进行改进。
.NET Framework Class Library
Process..::.CancelOutputRead Method

Cancels the asynchronous read operation on the redirected StandardOutputstream of an application.

Namespace:  System.Diagnostics
Assembly:  System (in System.dll)
Visual Basic
<ComVisibleAttribute(False)> _Public Sub CancelOutputRead
C#
[ComVisibleAttribute(false)]public void CancelOutputRead()
Visual C++
[ComVisibleAttribute(false)]public:void CancelOutputRead()
F#
[<ComVisibleAttribute(false)>]member CancelOutputRead : unit -> unit 
The StandardOutput stream is not enabled for asynchronous read operations.BeginOutputReadLine starts an asynchronous read operation on theStandardOutput stream.The following example starts the nmake command with user supplied arguments.

.NET Framework

Supported in: 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
  • SecurityAction..::.LinkDemand 

    for full trust for the immediate caller. This member cannot be used by partially trusted code.

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Reference

Process Class
System.Diagnostics Namespace
BeginOutputReadLine
ProcessStartInfo..::.RedirectStandardOutput
StandardOutput
OutputDataReceived
System.Diagnostics..::.DataReceivedEventHandler
.NET Framework 类库
Process..::.CancelOutputRead 方法

取消在应用程序的重定向 StandardOutput 流上的异步读取操作。

命名空间:  System.Diagnostics
程序集:  System(在 System.dll 中)
Visual Basic
<ComVisibleAttribute(False)> _Public Sub CancelOutputRead
C#
[ComVisibleAttribute(false)]public void CancelOutputRead()
Visual C++
[ComVisibleAttribute(false)]public:void CancelOutputRead()
F#
[<ComVisibleAttribute(false)>]member CancelOutputRead : unit -> unit 
没有为异步读取操作启用 StandardOutput 流。BeginOutputReadLine 启动 StandardOutput 流上的异步读取操作。下面的示例使用用户提供的参数启动 nmake 命令。

.NET Framework

受以下版本支持:4.5、4、3.5、3.0、2.0

.NET Framework Client Profile

受以下版本支持:4、3.5 SP1
  • SecurityAction..::.LinkDemand 

    用于完全信任直接调用方。 此成员不能由部分信任的代码使用。

并不是.NET Framework 对每个平台的所有版本都提供支持。有关支持的版本的列表,请参见.NET Framework 系统要求.

参考

Process类
System.Diagnostics 命名空间
BeginOutputReadLine
ProcessStartInfo..::.RedirectStandardOutput
StandardOutput
OutputDataReceived
System.Diagnostics..::.DataReceivedEventHandler

0 0
原创粉丝点击