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
)
Public Overridable Function CreateProfile (
name As String,
map As IDictionary(Of Integer, String),
description As String,
persistence As PersistenceType
) As Integer
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:
Int32int
Success in case of success, otherwise a possible error
code, matching one of the
ConfigException error constants.
Exceptions 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