共用方式為


Class.ProtectionDomain Property

Definition

Returns the ProtectionDomain of this class.

public Java.Security.ProtectionDomain? ProtectionDomain { [Android.Runtime.Register("getProtectionDomain", "()Ljava/security/ProtectionDomain;", "")] get; }
[<get: Android.Runtime.Register("getProtectionDomain", "()Ljava/security/ProtectionDomain;", "")>]
member this.ProtectionDomain : Java.Security.ProtectionDomain

Property Value

the ProtectionDomain of this class

Attributes

Remarks

Returns the ProtectionDomain of this class. If there is a security manager installed, this method first calls the security manager's checkPermission method with a RuntimePermission("getProtectionDomain") permission to ensure it's ok to get the ProtectionDomain.

Added in 1.2.

Java documentation for java.lang.Class.getProtectionDomain().

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