Proxy.IsProxyClass(Class) 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.
Returns true if and only if the specified class was dynamically
generated to be a proxy class using the getProxyClass
method or the newProxyInstance
method.
[Android.Runtime.Register("isProxyClass", "(Ljava/lang/Class;)Z", "")]
public static bool IsProxyClass (Java.Lang.Class cl);
[<Android.Runtime.Register("isProxyClass", "(Ljava/lang/Class;)Z", "")>]
static member IsProxyClass : Java.Lang.Class -> bool
Parameters
- cl
- Class
the class to test
Returns
true
if the class is a proxy class and
false
otherwise
- Attributes
Remarks
Returns true if and only if the specified class was dynamically generated to be a proxy class using the getProxyClass
method or the newProxyInstance
method.
The reliability of this method is important for the ability to use it to make security decisions, so its implementation should not just test if the class in question extends Proxy
.
Java documentation for java.lang.reflect.Proxy.isProxyClass(java.lang.Class<?>)
.
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.