Click or drag to resize

PropertiesGetProperty Method (String, String)

Returns the value of the property indexed by name.

Namespace:  OBCOM.NetSwitchLib.Utils
Assembly:  OBCOM.NetSwitchLib (in OBCOM.NetSwitchLib.dll) Version: 1.48.7760.35650 (1.48.7760.35650)
Syntax
public string GetProperty(
	string name,
	string defval
)

Parameters

name
Type: SystemString
The name of the required property.
defval
Type: SystemString
The value returned if the property is not defined.

Return Value

Type: String
A property value or defval if the property is not defined.
Exceptions
ExceptionCondition
ArgumentNullException Throw when name is null.
See Also