ESRI.ArcGIS.ADF.Connection.Local
Connect(Boolean) Method
See Also  Send Feedback
ESRI.ArcGIS.ADF.Connection.AGS Namespace > AGSServerConnection Class > Connect Method : Connect(Boolean) Method




throwExceptionOnUnauthorizedAccess
Controls whether an exception is thrown when a UnAuthorizedAcessException is caught when connecting.
Connect to the ArcGIS Server at the specified Host

Syntax

Visual Basic (Declaration) 
Public Overloads Sub Connect( _
   ByVal throwExceptionOnUnauthorizedAccess As Boolean _
) 
Visual Basic (Usage)Copy Code
Dim instance As AGSServerConnection
Dim throwExceptionOnUnauthorizedAccess As Boolean
 
instance.Connect(throwExceptionOnUnauthorizedAccess)
C# 
public void Connect( 
   bool throwExceptionOnUnauthorizedAccess
)

Parameters

throwExceptionOnUnauthorizedAccess
Controls whether an exception is thrown when a UnAuthorizedAcessException is caught when connecting.

Exceptions

ExceptionDescription
T:ESRI.ArcGIS.ADF.Connection.ServerHostNullException 

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2011 All Rights Reserved.