SystemInfo TryParse Method (String, Int16 ) | Apache log4net™ SDK Documentation

Parse a string into an Int16 value

Namespace: log4net.Util
Assembly: log4net (in log4net.dll) Version: 2.0.8.0-.NET 4.0
Syntax

C#
VB
C++
F#
Copy

    public static bool TryParse(
    	string s,
    	out short val
    )

    Public Shared Function TryParse (
    	s As String,
    	<OutAttribute> ByRef val As Short
    ) As Boolean

    public:
    static bool TryParse(
    	String^ s,
    	[OutAttribute] short% val
    )

    static member TryParse :
            s : string *
            val : int16 byref -> bool

#### Parameters

s
  Type: System
  String
  the string to parse
val
  Type: System
  Int16
  out param where the parsed value is placed

#### Return Value

Type: Boolean
true if the string was able to be parsed into an integer
Remarks

Attempts to parse the string into an integer. If the string cannot be parsed then this method returns false. The method does not throw an exception.

See Also

#### Reference

SystemInfo Class
TryParse Overload
log4net.Util Namespace