共用方式為


Level.Parse(String) Method

Definition

Parse a level name string into a Level.

[Android.Runtime.Register("parse", "(Ljava/lang/String;)Ljava/util/logging/Level;", "")]
public static Java.Util.Logging.Level Parse (string name);
[<Android.Runtime.Register("parse", "(Ljava/lang/String;)Ljava/util/logging/Level;", "")>]
static member Parse : string -> Java.Util.Logging.Level

Parameters

name
String

string to be parsed

Returns

The parsed value. Passing an integer that corresponds to a known name (e.g., 700) will return the associated name (e.g., CONFIG). Passing an integer that does not (e.g., 1) will return a new level name initialized to that value.

Attributes

Exceptions

if name is null.

if name is not valid.

Remarks

Parse a level name string into a Level.

The argument string may consist of either a level name or an integer value.

For example: <ul> <li> "SEVERE" <li> "1000" </ul>

Java documentation for java.util.logging.Level.parse(java.lang.String).

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