ContextWrapper.GetSystemServiceName(Class) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得由指定類別所代表的系統層級服務名稱。
[Android.Runtime.Register("getSystemServiceName", "(Ljava/lang/Class;)Ljava/lang/String;", "GetGetSystemServiceName_Ljava_lang_Class_Handler", ApiSince=23)]
public override string? GetSystemServiceName(Java.Lang.Class? serviceClass);
[<Android.Runtime.Register("getSystemServiceName", "(Ljava/lang/Class;)Ljava/lang/String;", "GetGetSystemServiceName_Ljava_lang_Class_Handler", ApiSince=23)>]
override this.GetSystemServiceName : Java.Lang.Class -> string
參數
- serviceClass
- Class
所期望服務的等級。 此值不可能是空值。
傳回
服務名稱或空,若類別不是支援的系統服務。
- 屬性
備註
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。
Java 文件 android.content.ContextWrapper.getSystemServiceName(java.lang.Class<?>)。