Share via


Instrumentation.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

屬性值

檢測的套件內容。

屬性

備註

傳回此檢測套件的內容。 請注意,這通常不同于正在檢測之應用程式的內容,因為檢測程式碼通常與它執行的應用程式套件不同。 請參閱 #getTargetContext 擷取目標應用程式的內容。

android.app.Instrumentation.getContext() JAVA 檔。

此頁面的部分是根據所建立和共用的工作進行修改,並根據 2.5 屬性授權中所述的詞彙來使用。

適用於

另請參閱