 | AttributeTableExtensionsTryGetBool Method |
Tries to get an boolean value from the specified attribute table with the specified key.
Namespace: Slash.Collections.AttributeTablesAssembly: Slash.Collections (in Slash.Collections.dll) Version: 1.0.6018.40177
Syntaxpublic static bool TryGetBool(
this IAttributeTable attributeTable,
Object key,
out bool value
)
<ExtensionAttribute>
Public Shared Function TryGetBool (
attributeTable As IAttributeTable,
key As Object,
<OutAttribute> ByRef value As Boolean
) As Boolean
public:
[ExtensionAttribute]
static bool TryGetBool(
IAttributeTable^ attributeTable,
Object^ key,
[OutAttribute] bool% value
)
[<ExtensionAttribute>]
static member TryGetBool :
attributeTable : IAttributeTable *
key : Object *
value : bool byref -> bool
Parameters
- attributeTable
- Type: Slash.Collections.AttributeTablesIAttributeTable
Attribute table to work on. - key
- Type: SystemObject
Key of value to get. - value
- Type: SystemBoolean
Variable to write value to.
Return Value
Type:
BooleanTrue if the value was found; otherwise, false.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IAttributeTable. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also