Aracılığıyla paylaş


Context.GetString Method

Definition

Overloads

GetString(Int32)

Returns a localized string from the application's package's default string table.

GetString(Int32, Object[])

Returns a localized string from the application's package's default string table.

GetString(Int32)

Returns a localized string from the application's package's default string table.

[Android.Runtime.Register("getString", "(I)Ljava/lang/String;", "")]
public string GetString (int resId);
[<Android.Runtime.Register("getString", "(I)Ljava/lang/String;", "")>]
member this.GetString : int -> string

Parameters

resId
Int32

Resource id for the string

Returns

The string data associated with the resource, stripped of styled text information.

Attributes

Remarks

Returns a localized string from the application's package's default string table.

Java documentation for android.content.Context.getString(int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

GetString(Int32, Object[])

Returns a localized string from the application's package's default string table.

[Android.Runtime.Register("getString", "(I[Ljava/lang/Object;)Ljava/lang/String;", "")]
public string GetString (int resId, params Java.Lang.Object[]? formatArgs);
[<Android.Runtime.Register("getString", "(I[Ljava/lang/Object;)Ljava/lang/String;", "")>]
member this.GetString : int * Java.Lang.Object[] -> string

Parameters

resId
Int32

Resource id for the string

formatArgs
Object[]

Returns

The string data associated with the resource, stripped of styled text information.

Attributes

Remarks

Java documentation for android.content.Context.getString(int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to