Collapse All Expand All

.NET Framework Class Library
EMSSSL Class See Also

[TIBCO.EMS .NET client library 5.1 documentation]

Set the target host name.

Namespace: TIBCO.EMS
Assembly: TIBCO.EMS (in TIBCO.EMS.dll)

# Syntax

    public static void SetTargetHostName(
    	string hostname
    )

    Public Shared Sub SetTargetHostName ( _
    	hostname As String _
    )

    public:
    static void SetTargetHostName(
    	String^ hostname
    )

#### Parameters

hostname
  Type: System..::.String
  The name of the server as defined in the server's certificate. Usually the server's HostName is specified as the CN in the server's certificate. This value must match the name on the server's certificate server name.

# Remarks

This is a required parameter for all .NET SSL connections. Because System.Net.Security.SslStream requires a target host, this value is required.

# See Also

EMSSSL Class
TIBCO.EMS Namespace