Click or drag to resize

ProfileManagerCreateProfile Method (String, IDictionaryInteger, String, String, PersistenceType)

Saves the given map as a profile with the specified name, description and persistence type.

Namespace:  Com.Datalogic.Device.Configuration
Assembly:  datalogic-xamarin-sdk (in datalogic-xamarin-sdk.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public virtual int CreateProfile(
	string name,
	IDictionary<Integer, string> map,
	string description,
	PersistenceType persistence
)

Parameters

name
Type: SystemString
- String name to be used to create the profile file. The name must have the ".json" extension, otherwise it is added.
map
Type: System.Collections.GenericIDictionaryInteger, String
- HasMap map of properties with their value to be saved as profile.
description
Type: SystemString
- String description to be associated to the profile.
persistence
Type: Com.Datalogic.DevicePersistenceType
- PersistenceType the persistence mode to be assigned to the profile. Only RebootPersistent and EnterpriseResetPersistent are allowed. It is not possible to save a profile with FactoryResetPersistent persistence.

Return Value

Type: Int32
int Success in case of success, otherwise a possible error code, matching one of the ConfigException error constants.
Exceptions
ExceptionCondition
ConfigException - in case of error, when exceptions are enabled through the ErrorManager singleton.
Remarks

Saves the given map as a profile with the specified name, description and persistence type. If a profile with the same name is already present the method fails.

The profile file is a .json file with the schema shown in [!:Com.Datalogic.Device.Configuration.ProfileManager.createProfile(java.lang.String,%20java.io.File,%20com.datalogic.device.PersistenceType)]

.

[Android Documentation]

See Also