語言

JniRuntime.ReflectionJniTypeManager.TryRegisterNativeMembers 方法

定義

多載

TryRegisterNativeMembers(JniType, Type, ReadOnlySpan<Char>)

protected bool TryRegisterNativeMembers(Java.Interop.JniType nativeClass, Type type, ReadOnlySpan<char> methods);
member this.TryRegisterNativeMembers : Java.Interop.JniType * Type * ReadOnlySpan<char> -> bool

參數

nativeClass
JniType
type
Type
methods
ReadOnlySpan<Char>

傳回

適用於

TryRegisterNativeMembers(JniType, Type, String)

警告

Use RegisterNativeMembers(JniType, Type, ReadOnlySpan<char>)

[System.Obsolete("Use RegisterNativeMembers(JniType, Type, ReadOnlySpan<char>)")]
protected bool TryRegisterNativeMembers(Java.Interop.JniType nativeClass, Type type, string? methods);
[<System.Obsolete("Use RegisterNativeMembers(JniType, Type, ReadOnlySpan<char>)")>]
member this.TryRegisterNativeMembers : Java.Interop.JniType * Type * string -> bool

參數

nativeClass
JniType
type
Type
methods
String

傳回

屬性

適用於