PowerTCP Emulation for .NET CF
AuthenticateAsClient(String) Method
See Also  Send comments on this topic.
Dart.Common Namespace > TcpBase Class > AuthenticateAsClient Method : AuthenticateAsClient(String) Method




targetHost
The name of the remote host to be authenticated.
Authenticates the server when establishing a secure connection.

Syntax

Visual Basic (Declaration) 
Public Overloads Sub AuthenticateAsClient( _
   ByVal targetHost As String _
) 
Visual Basic (Usage)Copy Code
Dim instance As TcpBase
Dim targetHost As String
 
instance.AuthenticateAsClient(targetHost)
C# 
public void AuthenticateAsClient( 
   string targetHost
)
Managed Extensions for C++ 
public: void AuthenticateAsClient( 
   string* targetHost
) 
C++/CLI 
public:
void AuthenticateAsClient( 
   String^ targetHost
) 

Parameters

targetHost
The name of the remote host to be authenticated.

Remarks

The targetHost must match the server certificate name. If authentication fails, an AuthenticationException will occur.

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

Documentation Version 4.2
© 2010 Dart Communications. All Rights Reserved.