Android.OS.UserManager.SetUserRestriction Method
Sets the value of a specific restriction.

Syntax

[Android.Runtime.Register("setUserRestriction", "(Ljava/lang/String;Z)V", "GetSetUserRestriction_Ljava_lang_String_ZHandler")]
[System.Obsolete("deprecated")]
public virtual void SetUserRestriction (string key, bool value)

Parameters

key
the key of the restriction
value
the value for the restriction

Remarks

Sets the value of a specific restriction. Requires the MANAGE_USERS permission.

[Android Documentation]

Requirements

Namespace: Android.OS
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 18