ProfileManagerCreateProfile Method (String, File, PersistenceType) |
Creates the profile with the given name and the specified 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,
File profile,
PersistenceType persistence
)
Public Overridable Function CreateProfile (
name As String,
profile As File,
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 by the method. - profile
- Type: File
- File file of the profile to be saved on the device.
The file must have the schema shown above. - persistence
- Type: Com.Datalogic.DevicePersistenceType
- PersistenceType the persistence mode assigned to the profile file to be created.
Only RebootPersistent and EnterpriseResetPersistent are allowed.
It is not possible to create a profile with FactoryResetPersistent persistence.
A Factory Reset Persistent profile can only be preinstalled on the device by an Espresso OTA and cannot be deleted.
Return Value
Type:
Int32int
Success in case of success, otherwise a possible error
code, matching one of the
ConfigException error constants.
Exceptions Remarks Creates the profile with the given name and the specified persistence type.
If a profile with the same name is already present the method fails.
The schema of the profile file is:
[Android Documentation]
See Also