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
ServerHostNullException 

See Also

© 2010 All Rights Reserved.