| NamedObjectCollectionTTryGet Method (String, T) |
Gets the object associated with the specified key.
Namespace: DigitalRune.CollectionsAssembly: DigitalRune (in DigitalRune.dll) Version: 1.20.0.0 (1.20.1.14552)
Syntax public bool TryGet(
string key,
out T value
)
Public Function TryGet (
key As String,
<OutAttribute> ByRef value As T
) As Boolean
public:
bool TryGet(
String^ key,
[OutAttribute] T% value
)
member TryGet :
key : string *
value : 'T byref -> bool
Parameters
- key
- Type: SystemString
The name of the element to get. - value
- Type: T
When this method returns, the object associated with the specified key, if
the key is found; otherwise, the default value for the type of the value
parameter. (This parameter is passed uninitialized.)
Return Value
Type:
Boolean if the
NamedObjectCollectionT contains
an element with the specified key; otherwise,
.
See Also