Share via


ReceiveEventSource.ValidateCertificate method (String, String)

Matches a given domain to subject names of the remote certificate and, if a match is found, validates the certificate.

Namespace:  Microsoft.Exchange.Data.Transport.Smtp
Assembly:  Microsoft.Exchange.Data.Transport (in Microsoft.Exchange.Data.Transport.dll)

Syntax

'Declaration
Public MustOverride Function ValidateCertificate ( _
    domain As String, _
    <OutAttribute> ByRef matchedCertDomain As String _
) As CertificateValidationStatus
'Usage
Dim instance As ReceiveEventSource
Dim domain As String
Dim matchedCertDomain As String
Dim returnValue As CertificateValidationStatus

returnValue = instance.ValidateCertificate(domain, _
    matchedCertDomain)
public abstract CertificateValidationStatus ValidateCertificate(
    string domain,
    out string matchedCertDomain
)

Parameters

  • matchedCertDomain
    Type: System.String

    Certificate domain found to match the given domain.

Return value

Type: Microsoft.Exchange.Data.Transport.CertificateValidationStatus
The certificate validation status of the current SMTP session.

See also

Reference

ReceiveEventSource class

ReceiveEventSource members

ValidateCertificate overload

Microsoft.Exchange.Data.Transport.Smtp namespace