JniRuntime.ReflectionJniTypeManager.TryRegisterNativeMembers 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| TryRegisterNativeMembers(JniType, Type, ReadOnlySpan<Char>) | |
| TryRegisterNativeMembers(JniType, Type, String) |
已过时.
|
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
返回
- 属性