Click or drag to resize
GDStreamSocketUpgradeToSslAsync Method
Starts an asynchronous operation to upgrade a connected socket to use SSL on a GDStreamSocket object.

Namespace:  GD
Assembly:  GD (in GD.dll) Version: 255.255.255.255
Syntax
public IAsyncAction UpgradeToSslAsync(
	SocketProtectionLevel protectionLevel,
	HostName validationHostName
)

Parameters

protectionLevel
Type: Windows.Networking.SocketsSocketProtectionLevel
The protection level that represents the integrity and encryption on the GDStreamSocket object.
validationHostName
Type: Windows.NetworkingHostName
The hostname of the remote network destination that is used for validation when upgrading to SSL.

Return Value

Type: IAsyncAction
An asynchronous operation to upgrade to use SSL on a GDStreamSocket object.
Remarks
The UpgradeToSslAsync(SocketProtectionLevel, HostName) method can only be used to upgrade an already established connection made with a SocketProtectionLevel of PlainSocket. The UpgradeToSslAsync(SocketProtectionLevel, HostName) method requires that the remote server to which the connection was established is able to upgrade a TCP connection to an SSL connection.
See Also