Apache log4net� SDK Documentation - Microsoft .NET Framework 4.0 |
|
SystemInfo.TryParse�Method�(String, Int32)
Parse a string into an Int32 value
[Visual�Basic]
Overloads�Public�Shared�Function�TryParse( _
���ByVal
s�As�
String,�_
���ByRef
val�As�
Integer�_
)�As�
Boolean
[C#]
public�static�
bool�TryParse(
���
string�
s,
���out�
int�
val);
Parameters
-
s
- the string to parse
-
val
- out param where the parsed value is placed
Return Value
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
SystemInfo Class | log4net.Util Namespace | SystemInfo.TryParse Overload List