共用方式為


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

備註

憑證撤銷清單包含已由簽發者撤銷的憑證。 檢查清單會對效能造成負面影響,但可改善應用程式安全性。

適用於