CalculationWorks Logo
BcfModelObjectCollectionTTryGetValue Method CalculationWorks BCF Library 1.1 for .NET Framework 4.5

[This is preliminary documentation and is subject to change.]

Gets the value associated with the specified key.

Namespace: CalculationWorks.BusinessModel
Assembly: CalculationWorks.BusinessModel (in CalculationWorks.BusinessModel.dll) Version: 1.1.0.0
Syntax

public bool TryGetValue(
	string key,
	out T value
)

Parameters

key
Type: SystemString
The key of the value to get.
value
Type: T
When this method returns, contains the value 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
true if the collection contains an element with the specified key; otherwise false.
Exceptions

ExceptionCondition
ArgumentNullExceptionkey is null
See Also

Reference