ReadEntityBodyMode 枚举


指定 HTTP 请求的实体正文如何读取的常数。Specifies constants that indicate how the entity body of an HTTP request has been read.

public enum class ReadEntityBodyMode
public enum ReadEntityBodyMode
type ReadEntityBodyMode = 
Public Enum ReadEntityBodyMode


Buffered 3

通过使用 Stream 方法,实体正文已经被读取进入一个 GetBufferedInputStream() 对象。The entity body has been read into a Stream object by using the GetBufferedInputStream() method.

Bufferless 2

通过使用 Stream 方法,实体正文已经被读取进入一个 GetBufferlessInputStream() 对象。The entity body has been read into a Stream object by using the GetBufferlessInputStream() method.

Classic 1

实体正文已经被读取,它的内容已经被放入如 FormFilesInputStreamBinaryRead(Int32) 的 HTTP 请求集合中。The entity body has already been read and its contents have been put into HTTP request collections like Form, Files, InputStream, and BinaryRead(Int32).

经典模式适用于已经发生 ASP.NET 管道处理的情况。Classic mode applies when ASP.NET pipeline processing has already occurred. 例如,运行 ASP.NET 页或访问其中一个 HTTP 请求集合中的属性会导致读取实体正文,然后将实体正文内容放入相应的集合中。For example, running an ASP.NET page or accessing a property in one of the HTTP request collections causes the entity body to be read, and the entity body contents are then put into the appropriate collection.

None 0

实体正文未被读取。The entity body has not been read.