Preference.Context 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
返回 android.content.Context 此偏好。
public virtual Android.Content.Context? Context { [Android.Runtime.Register("getContext", "()Landroid/content/Context;", "GetGetContextHandler")] get; }
[<get: Android.Runtime.Register("getContext", "()Landroid/content/Context;", "GetGetContextHandler")>]
member this.Context : Android.Content.Context
屬性值
這種偏好的背景。
- 屬性
備註
返回 android.content.Context 此偏好。 偏好階層中的每個偏好可以來自不同的上下文(例如,若多個活動將偏好設定整合於一個 PreferenceActivity上下文)。 此上下文將用於儲存偏好值。
Java 文件 android.preference.Preference.getContext()。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。