AppManagerSetUninstallBlocked Method |
Change whether a user can uninstalling a package.
Namespace:
Com.Datalogic.Device.App
Assembly:
datalogic-xamarin-sdk (in datalogic-xamarin-sdk.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public virtual int SetUninstallBlocked(
string packageName,
bool uninstallBlocked
)
Public Overridable Function SetUninstallBlocked (
packageName As String,
uninstallBlocked As Boolean
) As Integer
Parameters
- packageName
- Type: SystemString
- String The name of the package to change. - uninstallBlocked
- Type: SystemBoolean
- boolean True if the user shouldn't be able to uninstall the package.
Return Value
Type:
Int32intSuccess in case of success,
otherwise a possible error code, matching one of the
AppManagerException error constants.
Exceptions Remarks See Also