ContextWrapper.StopService(Intent) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
请求停止给定的应用程序服务。
[Android.Runtime.Register("stopService", "(Landroid/content/Intent;)Z", "GetStopService_Landroid_content_Intent_Handler")]
public override bool StopService(Android.Content.Intent? name);
[<Android.Runtime.Register("stopService", "(Landroid/content/Intent;)Z", "GetStopService_Landroid_content_Intent_Handler")>]
override this.StopService : Android.Content.Intent -> bool
参数
- name
- Intent
要停止的服务的说明。 意向必须是完全显式的(提供组件名称),或指定其目标的特定包名称。
返回
- 属性
注解
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。