ServiceStartNotAllowedException(IntPtr, JniHandleOwnership) 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化现有 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 调用。