ThreadGroup Constructors
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.
Overloads
ThreadGroup(String) |
Constructs a new thread group. |
ThreadGroup(ThreadGroup, String) |
Creates a new thread group. |
ThreadGroup(IntPtr, JniHandleOwnership) |
A constructor used when creating managed representations of JNI objects; called by the runtime. |
ThreadGroup(String)
Constructs a new thread group.
[Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "")]
public ThreadGroup (string? name);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "")>]
new Java.Lang.ThreadGroup : string -> Java.Lang.ThreadGroup
Parameters
- name
- String
the name of the new thread group.
- Attributes
Remarks
Constructs a new thread group. The parent of this new group is the thread group of the currently running thread.
The checkAccess
method of the parent thread group is called with no arguments; this may result in a security exception.
Added in 1.0.
Java documentation for java.lang.ThreadGroup.ThreadGroup(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.
See also
Applies to
ThreadGroup(ThreadGroup, String)
Creates a new thread group.
[Android.Runtime.Register(".ctor", "(Ljava/lang/ThreadGroup;Ljava/lang/String;)V", "")]
public ThreadGroup (Java.Lang.ThreadGroup? parent, string? name);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/ThreadGroup;Ljava/lang/String;)V", "")>]
new Java.Lang.ThreadGroup : Java.Lang.ThreadGroup * string -> Java.Lang.ThreadGroup
Parameters
- parent
- ThreadGroup
the parent thread group.
- name
- String
the name of the new thread group.
- Attributes
Exceptions
if parent == null
if parent
has been
destroyed already
Remarks
Creates a new thread group. The parent of this new group is the specified thread group.
The checkAccess
method of the parent thread group is called with no arguments; this may result in a security exception.
Added in 1.0.
Java documentation for java.lang.ThreadGroup.ThreadGroup(java.lang.ThreadGroup, 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
ThreadGroup(IntPtr, JniHandleOwnership)
A constructor used when creating managed representations of JNI objects; called by the runtime.
protected ThreadGroup (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Java.Lang.ThreadGroup : nativeint * Android.Runtime.JniHandleOwnership -> Java.Lang.ThreadGroup
Parameters
- transfer
- JniHandleOwnership
A JniHandleOwnershipindicating how to handle javaReference
Remarks
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.