IInfo Interface#
Syntax#
C#
VB
The IInfo type exposes the following members.
Properties#
Name | Description | |
---|---|---|
Item | Retrieves the value of the specified property. |
Methods#
Name | Description | |
---|---|---|
ContainsKey | Indicates if the item has a specific property. | |
GetValueOrDefault | Gets the property value if the given property key exists. Otherwise, returns the default value. |
IInfo.ContainsKey Method#
Indicates if the item has a specific property.
Syntax#
C#
VB
Parameters#
- key
- Type: System.String
The key of the property to look up. The lookup is case sensitive.
Return Value#
Type: Boolean
Returns true if the property exists.
Remarks#
Thread Safety: This method is thread-safe.
Error Safety: Throws a System.ArgumentNullException if the key passed is null.
IInfo.GetValueOrDefault Method#
Gets the property value if the given property key exists. Otherwise, returns the default value.
Syntax#
C#
VB
Parameters#
- key
- Type: System.String
The key of the property to look up. The lookup is case sensitive. - defaultValue
- Type: System.String
The default value returned if the property key is not found.
Return Value#
Type: String
Returns the property value if the given property key exists. Otherwise, returns the default value.
Remarks#
Thread Safety: This method is thread-safe.
Error Safety: Throws a System.ArgumentNullException if the key passed is null.
IInfo.Item Property#
Retrieves the value of the specified property.
Syntax#
C#
VB
Parameters#
- key
- Type: System.String
The key of the property to look up. The lookup is case sensitive.
Return Value#
Type: String
Returns the value of the property.
Remarks#
Thread Safety: This method is thread-safe.
Error Safety: Throws a System.ArgumentNullException if the key passed is null. Throws a System.NotSupportedException if the key passed does not exist in the info object.