共用方式為


IReasonPhraseCatalog.GetReason(Int32, Locale) Method

Definition

Obtains the reason phrase for a status code.

[Android.Runtime.Register("getReason", "(ILjava/util/Locale;)Ljava/lang/String;", "GetGetReason_ILjava_util_Locale_Handler:Org.Apache.Http.IReasonPhraseCatalogInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public string? GetReason (int status, Java.Util.Locale? loc);
[<Android.Runtime.Register("getReason", "(ILjava/util/Locale;)Ljava/lang/String;", "GetGetReason_ILjava_util_Locale_Handler:Org.Apache.Http.IReasonPhraseCatalogInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetReason : int * Java.Util.Locale -> string

Parameters

status
Int32

the status code, in the range 100-599

loc
Locale

the preferred locale for the reason phrase

Returns

Attributes

Remarks

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