共用方式為


RenamingDelegatingContext.ProviderWithRenamedContext 方法

定義

多載

ProviderWithRenamedContext(Class, Context, String)
ProviderWithRenamedContext(Class, Context, String, Boolean)

ProviderWithRenamedContext(Class, Context, String)

[Android.Runtime.Register("providerWithRenamedContext", "(Ljava/lang/Class;Landroid/content/Context;Ljava/lang/String;)Landroid/content/ContentProvider;", "")]
[Java.Interop.JavaTypeParameters(new System.String[] { "T extends android.content.ContentProvider" })]
public static Java.Lang.Object? ProviderWithRenamedContext (Java.Lang.Class? contentProvider, Android.Content.Context? c, string? filePrefix);
[<Android.Runtime.Register("providerWithRenamedContext", "(Ljava/lang/Class;Landroid/content/Context;Ljava/lang/String;)Landroid/content/ContentProvider;", "")>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T extends android.content.ContentProvider" })>]
static member ProviderWithRenamedContext : Java.Lang.Class * Android.Content.Context * string -> Java.Lang.Object

參數

contentProvider
Class
filePrefix
String

傳回

屬性

備註

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於

ProviderWithRenamedContext(Class, Context, String, Boolean)

[Android.Runtime.Register("providerWithRenamedContext", "(Ljava/lang/Class;Landroid/content/Context;Ljava/lang/String;Z)Landroid/content/ContentProvider;", "")]
[Java.Interop.JavaTypeParameters(new System.String[] { "T extends android.content.ContentProvider" })]
public static Java.Lang.Object? ProviderWithRenamedContext (Java.Lang.Class? contentProvider, Android.Content.Context? c, string? filePrefix, bool allowAccessToExistingFilesAndDbs);
[<Android.Runtime.Register("providerWithRenamedContext", "(Ljava/lang/Class;Landroid/content/Context;Ljava/lang/String;Z)Landroid/content/ContentProvider;", "")>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T extends android.content.ContentProvider" })>]
static member ProviderWithRenamedContext : Java.Lang.Class * Android.Content.Context * string * bool -> Java.Lang.Object

參數

contentProvider
Class
filePrefix
String
allowAccessToExistingFilesAndDbs
Boolean

傳回

屬性

備註

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於