DevicePolicyManager.SetPasswordExpirationTimeout(ComponentName, Int64) DevicePolicyManager.SetPasswordExpirationTimeout(ComponentName, Int64) Method

Definition

Called by a device admin to set the password expiration timeout.

[Android.Runtime.Register("setPasswordExpirationTimeout", "(Landroid/content/ComponentName;J)V", "GetSetPasswordExpirationTimeout_Landroid_content_ComponentName_JHandler", ApiSince=11)]
public virtual void SetPasswordExpirationTimeout (Android.Content.ComponentName admin, long timeout);
abstract member SetPasswordExpirationTimeout : Android.Content.ComponentName * int64 -> unit
override this.SetPasswordExpirationTimeout : Android.Content.ComponentName * int64 -> unit

Parameters

admin
ComponentName ComponentName

Which DeviceAdminReceiver this request is associated with.

timeout
Int64 Int64

The limit (in ms) that a password can remain in effect. A value of 0 means there is no restriction (unlimited).

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to