PrintManager.IsPrintServiceEnabled(ComponentName) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
检查给定的打印服务是否已启用。
[Android.Runtime.Register("isPrintServiceEnabled", "(Landroid/content/ComponentName;)Z", "", ApiSince=33)]
public bool IsPrintServiceEnabled(Android.Content.ComponentName service);
[<Android.Runtime.Register("isPrintServiceEnabled", "(Landroid/content/ComponentName;)Z", "", ApiSince=33)>]
member this.IsPrintServiceEnabled : Android.Content.ComponentName -> bool
参数
- service
- ComponentName
要检查的打印服务。
返回
如果启用了给定的打印服务,则为 true
- 特性
注解
检查给定的打印服务是否已启用。 所提供的服务必须与调用包共享 UID,否则将引发 a SecurityException 。
Java文档android.print.PrintManager.isPrintServiceEnabled(android.content.ComponentName)。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。