Instrumentation.Context 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
傳回此檢測套件的內容。
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 屬性授權中所述的詞彙來使用。