public static Item CreateAGSServerConnectionFile( string agsFilePath, string serverUrl, string userName, string password, bool saveToWCM, bool saveToFile, ConnectionMode connMode )
Public Shared Function CreateAGSServerConnectionFile( _ ByVal agsFilePath As String, _ ByVal serverUrl As String, _ Optional ByVal userName As String, _ Optional ByVal password As String, _ Optional ByVal saveToWCM As Boolean, _ Optional ByVal saveToFile As Boolean, _ Optional ByVal connMode As ConnectionMode _ ) As Item
Parameters
- agsFilePath
- The AGS Server connection file to be created
- serverUrl
- The server connection url
- userName
- An optional user name
- password
- An optional password
- saveToWCM
- An optional parameter indicating whether to save connection credentials to the Windows Credential Manager (more secure)
- saveToFile
- An optional parameter indicating whether to persist the connection credentials in the .ags connection file (less secure)
- connMode
- An optional parameter indicating the connection type
Return Value
An Item representing the AGS server connection file which has been added to the project