HttpRequest.ReadEntityBodyMode HttpRequest.ReadEntityBodyMode HttpRequest.ReadEntityBodyMode HttpRequest.ReadEntityBodyMode Property

定义

获取指示请求实体是否被读以及如何被读的值。Gets a value that indicates whether the request entity body has been read, and if so, how it was read.

public:
 property System::Web::ReadEntityBodyMode ReadEntityBodyMode { System::Web::ReadEntityBodyMode get(); };
public System.Web.ReadEntityBodyMode ReadEntityBodyMode { get; }
member this.ReadEntityBodyMode : System.Web.ReadEntityBodyMode
Public ReadOnly Property ReadEntityBodyMode As ReadEntityBodyMode

属性值

指示的值请求实体怎么读取,或者未读取。The value that indicates how the request entity body was read, or that it has not been read.

注解

如果已读取实体正文,但尝试使用不兼容的方法对其进行读取,则使用此方法可避免引发异常。This method is used to avoid the exception that is thrown if the entity body has already been read and an attempt is made to read it by using an incompatible method. 读取实体主体的方法和属性包括:Methods and properties that read the entity body include the following:

适用于