JniTypeSignature.TryParse(String, JniTypeSignature) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Attempts to parse a JNI type name or descriptor into its components.
public static bool TryParse(string signature, out Java.Interop.JniTypeSignature result);
static member TryParse : string * JniTypeSignature -> bool
Parameters
- signature
- String
A simple JNI type name or a JNI type descriptor, including any array prefixes. The value V is parsed as a class name, not as the void descriptor.
- result
- JniTypeSignature
The parsed signature on success; otherwise, the default JniTypeSignature value when the method returns false.
Returns
true if parsing succeeds; false if the parser reports an invalid argument. Some malformed signatures throw instead.
Exceptions
signature contains an empty class descriptor, such as L; or [L;.
signature contains only array prefixes, such as [.
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.