|
BcfReadOnlyModelObjectCollectionTTryGetValue Method |
Gets the value associated with the specified key.
Namespace: CalculationWorks.BusinessModelAssembly: CalculationWorks.BusinessModel (in CalculationWorks.BusinessModel.dll) Version: 3.0.2.0
Syntax public bool TryGetValue(
string key,
out T value
)
Public Function TryGetValue (
key As String,
<OutAttribute> ByRef value As T
) As Boolean
public:
bool TryGetValue(
String^ key,
[OutAttribute] T% value
)
member TryGetValue :
key : string *
value : 'T byref -> bool
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:
Booleantrue if the collection contains an element with the specified key; otherwise
false.
Exceptions Remarks The collection is case-sensitive when it searches for keys.
Version Information CalculationWorks.BusinessModel
Supported in: 3.0, 2.1, 2.0
See Also