AuthenticateAsClient Method (String, X509Certificate, X509Certificate[], SslVerification, SslProtocols[])

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Called by clients to authenticate the server and optionally the client in a client-server connection. The authentication process uses the specified certificate collections and SSL protocols.

Namespace:  Microsoft.SPOT.Net.Security
Assembly:  System.Net.Security (in System.Net.Security.dll)

Syntax

'Declaration
Public Sub AuthenticateAsClient ( _
    targetHost As String, _
    cert As X509Certificate, _
    ca As X509Certificate(), _
    verify As SslVerification, _
    ParamArray sslProtocols As SslProtocols() _
)
public void AuthenticateAsClient(
    string targetHost,
    X509Certificate cert,
    X509Certificate[] ca,
    SslVerification verify,
    params SslProtocols[] sslProtocols
)
public:
void AuthenticateAsClient(
    String^ targetHost, 
    X509Certificate^ cert, 
    array<X509Certificate^>^ ca, 
    SslVerification verify, 
    ... array<SslProtocols>^ sslProtocols
)
member AuthenticateAsClient : 
        targetHost:string * 
        cert:X509Certificate * 
        ca:X509Certificate[] * 
        verify:SslVerification * 
        sslProtocols:SslProtocols[] -> unit 
public function AuthenticateAsClient(
    targetHost : String, 
    cert : X509Certificate, 
    ca : X509Certificate[], 
    verify : SslVerification, 
    ... sslProtocols : SslProtocols[]
)

Parameters

.NET Framework Security

See Also

Reference

SslStream Class

AuthenticateAsClient Overload

Microsoft.SPOT.Net.Security Namespace