PipeOptions 枚举

定义

提供创建 PipeStream 对象的选项。Provides options for creating a PipeStream object. 此枚举有一个允许其成员值按位组合的 FlagsAttribute 属性。This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

此枚举有一个 FlagsAttribute 属性,允许按位组合成员值。

public enum class PipeOptions
[System.Flags]
[System.Serializable]
public enum PipeOptions
type PipeOptions = 
Public Enum PipeOptions
继承
PipeOptions
属性

字段

Asynchronous 1073741824

指示管道可用于异步读取和写入。Indicates that the pipe can be used for asynchronous reading and writing.

CurrentUserOnly 536870912

用于创建 NamedPipeServerStream 实例时,指示管道只能连接到同一用户创建的客户端。When used to create a NamedPipeServerStream instance, indicates that the pipe can only be connected to a client created by the same user. 用于创建 NamedPipeClientStream 实例时,指示管道只能连接到同一用户创建的服务器。When used to create a NamedPipeClientStream instance, indicates that the pipe can only connect to a server created by the same user. 在 Windows 上,它对用户帐户和提升级别进行验证。On Windows, it verifies both the user account and elevation level.

None 0

指示没有其他参数。Indicates that there are no additional parameters.

WriteThrough -2147483648

指示系统应通过任何中间缓存直接写入管道。Indicates that the system should write through any intermediate cache and go directly to the pipe.

注解

使用 PipeOptions 枚举指定高级管道选项。Use the PipeOptions enumeration to specify advanced pipe options.

适用于