Debug.AttachJvmtiAgent(String, String, ClassLoader) 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.
Attach a library as a jvmti agent to the current runtime, with the given classloader determining the library search path.
[Android.Runtime.Register("attachJvmtiAgent", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/ClassLoader;)V", "", ApiSince=28)]
public static void AttachJvmtiAgent (string library, string? options, Java.Lang.ClassLoader? classLoader);
[<Android.Runtime.Register("attachJvmtiAgent", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/ClassLoader;)V", "", ApiSince=28)>]
static member AttachJvmtiAgent : string * string * Java.Lang.ClassLoader -> unit
Parameters
- library
- String
the library containing the agent.
- options
- String
the options passed to the agent.
- classLoader
- ClassLoader
the classloader determining the library search path.
- Attributes
Remarks
Attach a library as a jvmti agent to the current runtime, with the given classloader determining the library search path.
Note: agents may only be attached to debuggable apps. Otherwise, this function will throw a SecurityException.
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.