語言

ContentProvider.Context 屬性

定義

取得此提供者正在執行的上下文。

public Android.Content.Context? Context { [Android.Runtime.Register("getContext", "()Landroid/content/Context;", "")] get; }
[<get: Android.Runtime.Register("getContext", "()Landroid/content/Context;", "")>]
member this.Context : Android.Content.Context

屬性值

取得此提供者正在執行的上下文。 只有在 onCreate() 被呼叫後才可用——這會在建構子中回傳 null。

屬性

備註

取得此提供者正在執行的上下文。 只有一次 #onCreate 被呼叫後才可用——這會在建構子中回傳 null 。

Java 文件 android.content.ContentProvider.getContext()。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於