ArcGIS Explorer Component Help |
MapItemFile..::.Save Method (Boolean, Boolean) |
MapItemFile Class See Also |
Saves the specified MapItemFile with authentication credentials.
Namespace:
ESRI.ArcGISExplorer.MappingAssembly: ESRI.ArcGISExplorer (in ESRI.ArcGISExplorer.dll) Version: 2.0.0.1500 (2.0.0.1500)
Syntax
C# |
---|
public void Save( bool saveWithAuthenticationCredentials, bool saveContentWithRelativePaths ) |
Visual Basic (Declaration) |
---|
Public Sub Save ( _ saveWithAuthenticationCredentials As Boolean, _ saveContentWithRelativePaths As Boolean _ ) |
Parameters
- saveWithAuthenticationCredentials
- Type: System..::.Boolean
if set to trueTruetruetrue (True in Visual Basic) [save with authentication credentials].
- saveContentWithRelativePaths
- Type: System..::.Boolean
if set to trueTruetruetrue (True in Visual Basic) [save content with relative paths].
Remarks
A MapItemFile represents a map content file (.nmc) containing MapItems.
The layer classes are a subset of MapItems that reference geographic data; therefore a layer may store connection credentials for the data, e.g. file location, username, password. If you are collaborating with colleagues you may wish to store authentication credentials in the map content file, or use relative paths so that the layer is not reliant on an absolute path. It is possible to specify both these options using the overloaded Save method - if authentication credentials are stored in the file, the password is encrypted.