 | AttributeTableExtensionsTryGetValue Method (IAttributeTable, Object, Type, Object) |
Tries to retrieve the value the passed key is mapped to within this
attribute table and expects the specified type.
Namespace: Slash.Collections.AttributeTablesAssembly: Slash.Collections (in Slash.Collections.dll) Version: 1.0.6018.40177
Syntaxpublic static bool TryGetValue(
this IAttributeTable attributeTable,
Object key,
Type type,
out Object value
)
<ExtensionAttribute>
Public Shared Function TryGetValue (
attributeTable As IAttributeTable,
key As Object,
type As Type,
<OutAttribute> ByRef value As Object
) As Boolean
public:
[ExtensionAttribute]
static bool TryGetValue(
IAttributeTable^ attributeTable,
Object^ key,
Type^ type,
[OutAttribute] Object^% value
)
[<ExtensionAttribute>]
static member TryGetValue :
attributeTable : IAttributeTable *
key : Object *
type : Type *
value : Object byref -> bool
Parameters
- attributeTable
- Type: Slash.Collections.AttributeTablesIAttributeTable
Attribute table to work on. - key
- Type: SystemObject
Key to retrieve the value of. - type
- Type: SystemType
Expected value type. - value
- Type: SystemObject
Retrieved value.
Return Value
Type:
Boolean true if a value was found, and false otherwise.
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