OutgoingWebRequestContext 类
定义
提供以编程方式访问传出 Web 请求上下文的能力。Provides programmatic access to the context of the outgoing Web request.
public ref class OutgoingWebRequestContext
public class OutgoingWebRequestContext
type OutgoingWebRequestContext = class
Public Class OutgoingWebRequestContext
- 继承
-
OutgoingWebRequestContext
属性
| Accept |
获取或设置传出 Web 请求的 |
| ContentLength |
获取或设置传出 Web 请求的内容长度标头值。Gets or sets the content length header value of the outgoing Web request. |
| ContentType |
获取或设置传出 Web 请求的类型标头值。Gets or sets the content type header value from the outgoing Web request. |
| Headers |
获取传出 Web 请求的标头。Gets the headers for the outgoing Web request. |
| IfMatch |
获取或设置传出 Web 请求的 |
| IfModifiedSince |
获取或设置传出 Web 请求的 |
| IfNoneMatch |
获取或设置传出 Web 请求的 |
| IfUnmodifiedSince |
获取或设置传出 Web 请求的 |
| Method |
获取传出 Web 请求的 HTTP 方法。Gets the HTTP method of the outgoing Web request. |
| SuppressEntityBody |
获取一个值,该值指示 Windows Communication Foundation (WCF) 是否省略通常写入响应的实体正文的数据并强制返回一个空响应。Gets a value that indicates whether Windows Communication Foundation (WCF) omits data that is normally written to the entity body of the response and forces an empty response to be returned. |
| UserAgent |
从传出 Web 请求获取用户代理标头值。Gets the user agent header value from the outgoing Web request. |
方法
| Equals(Object) |
确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object. (继承自 Object) |
| GetHashCode() |
作为默认哈希函数。Serves as the default hash function. (继承自 Object) |
| GetType() |
获取当前实例的 Type。Gets the Type of the current instance. (继承自 Object) |
| MemberwiseClone() |
创建当前 Object 的浅表副本。Creates a shallow copy of the current Object. (继承自 Object) |
| ToString() |
返回表示当前对象的字符串。Returns a string that represents the current object. (继承自 Object) |