SslStream.CheckCertRevocationStatus 属性

定义

获取一个 Boolean 值,该值指示在证书验证过程中是否检查证书吊销列表。

public:
 virtual property bool CheckCertRevocationStatus { bool get(); };
public virtual bool CheckCertRevocationStatus { get; }
member this.CheckCertRevocationStatus : bool
Public Overridable ReadOnly Property CheckCertRevocationStatus As Boolean

属性值

如果检查证书吊销列表,则为 true;否则为 false

示例

下面的代码示例演示如何显示此属性的值。

static void DisplayStreamProperties( SslStream^ stream )
{
   Console::WriteLine( L"Can read: {0}, write {1}", stream->CanRead, stream->CanWrite );
   Console::WriteLine( L"Can timeout: {0}", stream->CanTimeout );
}
static void DisplayStreamProperties(SslStream stream)
{
   Console.WriteLine("Can read: {0}, write {1}", stream.CanRead, stream.CanWrite);
   Console.WriteLine("Can timeout: {0}", stream.CanTimeout);
}
Private Shared Sub DisplayStreamProperties(stream As SslStream)
    Console.WriteLine("Can read: {0}, write {1}", stream.CanRead, stream.CanWrite)
    Console.WriteLine("Can timeout: {0}", stream.CanTimeout)
End Sub

注解

证书吊销列表包含已由颁发者吊销的证书。 检查列表会对性能产生负面影响,但可以提高应用程序的安全性。

适用于