Sdílet prostřednictvím


Security.RemoveProvider(String) Method

Definition

Removes the provider with the specified name.

[Android.Runtime.Register("removeProvider", "(Ljava/lang/String;)V", "")]
public static void RemoveProvider (string? name);
[<Android.Runtime.Register("removeProvider", "(Ljava/lang/String;)V", "")>]
static member RemoveProvider : string -> unit

Parameters

name
String

the name of the provider to remove.

Attributes

Remarks

Removes the provider with the specified name.

When the specified provider is removed, all providers located at a position greater than where the specified provider was are shifted down one position (towards the head of the list of installed providers).

This method returns silently if the provider is not installed or if name is null.

First, if there is a security manager, its checkSecurityAccess method is called with the string "removeProvider."+name to see if it's ok to remove the provider. If the default implementation of checkSecurityAccess is used (i.e., that method is not overriden), then this will result in a call to the security manager's checkPermission method with a SecurityPermission("removeProvider."+name) permission.

Java documentation for java.security.Security.removeProvider(java.lang.String).

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