Common Logging 2.0 API Reference

ArgUtils.GetValue(NameValueCollection, String, String) Method

Retrieves the named value from the specified NameValueCollection.

[Visual Basic]
Public Overloads Shared Sub GetValue( _
   ByVal values As NameValueCollection, _
   ByVal name As String, _
   ByVal defaultValue As String _
)
[C#]
public static string GetValue(
   NameValueCollection values,
   string name,
   string defaultValue
);

Parameters

values
may be null
name
the value's key
defaultValue
the default value, if not found

Return Value

if values is not null, the value returned by values[name]. null otherwise.

See Also

ArgUtils Class | Common.Logging.Configuration Namespace | ArgUtils.GetValue Overload List