HttpServerCustomValidationRequestedEventArgs 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
为 ServerCustomValidationRequested 事件提供数据。
public ref class HttpServerCustomValidationRequestedEventArgs sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 196608)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class HttpServerCustomValidationRequestedEventArgs final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 196608)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class HttpServerCustomValidationRequestedEventArgs
Public NotInheritable Class HttpServerCustomValidationRequestedEventArgs
- 继承
- 属性
Windows 要求
| 设备系列 |
Windows 10 Anniversary Edition (在 10.0.14393.0 中引入)
|
| API contract |
Windows.Foundation.UniversalApiContract (在 v3.0 中引入)
|
注解
此类由 ServerCustomValidationRequested 事件检索。
属性
| RequestMessage |
获取包含目标 URI、标头和正文的 HTTP 请求。 |
| ServerCertificate |
获取服务器提供的 X509Certificate。 |
| ServerCertificateErrors |
获取 OS 验证逻辑在此证书或链中发现的错误。 |
| ServerCertificateErrorSeverity |
获取遇到的错误的严重性级别。 |
| ServerIntermediateCertificates |
获取中间证书链,以与远程证书关联的根 CA 结尾。 |
方法
| GetDeferral() |
通过对 Deferral 对象调用 Complete 方法,请求延迟事件处理程序的挂起,直到延迟完成。 |
| Reject() |
拒绝服务器的证书。 这将导致客户端终止与服务器的连接。 |