AuthenticateAsClient Method (String, 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 SSL protocols.
Namespace: Microsoft.SPOT.Net.Security
Assembly: System.Net.Security (in System.Net.Security.dll)
Syntax
'Declaration
Public Sub AuthenticateAsClient ( _
targetHost As String, _
ParamArray sslProtocols As SslProtocols() _
)
public void AuthenticateAsClient(
string targetHost,
params SslProtocols[] sslProtocols
)
public:
void AuthenticateAsClient(
String^ targetHost,
... array<SslProtocols>^ sslProtocols
)
member AuthenticateAsClient :
targetHost:string *
sslProtocols:SslProtocols[] -> unit
public function AuthenticateAsClient(
targetHost : String,
... sslProtocols : SslProtocols[]
)
Parameters
- targetHost
Type: System. . :: . .String
The name of the server that will share this SslStream.
- sslProtocols
Type: array<Microsoft.SPOT.Net.Security. . :: . .SslProtocols> [] () [] []
The protocols that may be supported.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.