Get the item associated with the specified key.
Namespace: Cognex.VisionAssembly: Cognex.Vision.Core.Net (in Cognex.Vision.Core.Net.dll) Version: 9.22.2.0
public bool TryGetValue(
string key,
out IGraphicParentChild value
)
public bool TryGetValue(
string key,
out IGraphicParentChild value
)
Public Function TryGetValue (
key As String,
<OutAttribute> ByRef value As IGraphicParentChild
) As Boolean
Public Function TryGetValue (
key As String,
<OutAttribute> ByRef value As IGraphicParentChild
) As Boolean
public:
virtual bool TryGetValue(
String^ key,
[OutAttribute] IGraphicParentChild^% value
) sealed
public:
virtual bool TryGetValue(
String^ key,
[OutAttribute] IGraphicParentChild^% value
) sealed
Parameters
- key
- Type: System String
The key of the item to retrieve.
- value
- Type: Cognex.Vision IGraphicParentChild
If the key is found, this will be the value associated with that key when this method returns. If the key is NOT found, this will equal the input value.
Return Value
Type:
Booleantrue if this dictionary contains an element with the specified key, else false.