Permission.NewPermissionCollection Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
[Android.Runtime.Register("newPermissionCollection", "()Ljava/security/PermissionCollection;", "GetNewPermissionCollectionHandler")]
public virtual Java.Security.PermissionCollection? NewPermissionCollection();
[<Android.Runtime.Register("newPermissionCollection", "()Ljava/security/PermissionCollection;", "GetNewPermissionCollectionHandler")>]
abstract member NewPermissionCollection : unit -> Java.Security.PermissionCollection
override this.NewPermissionCollection : unit -> Java.Security.PermissionCollection
Returns
a new PermissionCollection object for this type of Permission, or null if one is not defined.
- Attributes
Remarks
Returns an empty PermissionCollection for a given Permission object, or null if one is not defined. Subclasses of class Permission should override this if they need to store their permissions in a particular PermissionCollection object in order to provide the correct semantics when the PermissionCollection.implies method is called. If null is returned, then the caller of this method is free to store permissions of this type in any PermissionCollection they choose (one that uses a Hashtable, one that uses a Vector, etc.).
Java reference for java.security.Permission.newPermissionCollection.
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.