JniRuntime.ReflectionJniTypeManager.RegisterNativeMembers 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.
Overloads
| Name | Description |
|---|---|
| RegisterNativeMembers(JniType, Type, ReadOnlySpan<Char>) |
Invokes generated or attributed native registration callbacks. |
| RegisterNativeMembers(JniType, Type, String) |
Obsolete.
Invokes native registration callbacks with an optional method description. |
RegisterNativeMembers(JniType, Type, ReadOnlySpan<Char>)
Invokes generated or attributed native registration callbacks.
public override void RegisterNativeMembers(Java.Interop.JniType nativeClass, Type type, ReadOnlySpan<char> methods);
override this.RegisterNativeMembers : Java.Interop.JniType * Type * ReadOnlySpan<char> -> unit
Parameters
- nativeClass
- JniType
The Java class to receive native registrations.
- type
- Type
The managed type to inspect for registration callbacks.
- methods
- ReadOnlySpan<Char>
A compatibility input ignored by this overload.
Remarks
The span is not forwarded as a method-description string.
Applies to
RegisterNativeMembers(JniType, Type, String)
Caution
Use RegisterNativeMembers(JniType, Type, ReadOnlySpan<char>)
Invokes native registration callbacks with an optional method description.
[System.Obsolete("Use RegisterNativeMembers(JniType, Type, ReadOnlySpan<char>)")]
public override void RegisterNativeMembers(Java.Interop.JniType nativeClass, Type type, string? methods);
[<System.Obsolete("Use RegisterNativeMembers(JniType, Type, ReadOnlySpan<char>)")>]
override this.RegisterNativeMembers : Java.Interop.JniType * Type * string -> unit
Parameters
- nativeClass
- JniType
The Java class to receive native registrations.
- type
- Type
The managed type to inspect for registration callbacks.
- methods
- String
The optional description forwarded to callback arguments.
- Attributes
Remarks
Generated registration is tried before attributed methods.