语言

ServiceStartNotAllowedException(IntPtr, JniHandleOwnership) 构造函数

定义

初始化现有 Java Native Interface 对象的托管表示形式。

protected ServiceStartNotAllowedException(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.App.ServiceStartNotAllowedException : nativeint * Android.Runtime.JniHandleOwnership -> Android.App.ServiceStartNotAllowedException

参数

javaReference
IntPtr

nativeint

Java Native Interface 对象引用。

transfer
JniHandleOwnership

指定运行时在实例复制后如何释放传入的 JNI 引用。

注解

当为现有Java对象创建托管对等时,此构造函数由 Android 绑定运行时的 .NET 调用。

适用于