Get the key and value associated with the specified index.
Namespace: Cognex.VisionAssembly: Cognex.Vision.Core.Net (in Cognex.Vision.Core.Net.dll) Version: 9.21.1.1
public bool TryGetByIndex(
int index,
out string key,
out IGraphicParentChild value
)
public bool TryGetByIndex(
int index,
out string key,
out IGraphicParentChild value
)
Public Function TryGetByIndex (
index As Integer,
<OutAttribute> ByRef key As String,
<OutAttribute> ByRef value As IGraphicParentChild
) As Boolean
Public Function TryGetByIndex (
index As Integer,
<OutAttribute> ByRef key As String,
<OutAttribute> ByRef value As IGraphicParentChild
) As Boolean
public:
bool TryGetByIndex(
int index,
[OutAttribute] String^% key,
[OutAttribute] IGraphicParentChild^% value
)
public:
bool TryGetByIndex(
int index,
[OutAttribute] String^% key,
[OutAttribute] IGraphicParentChild^% value
)
Return Value
Type:
Booleantrue if this dictionary contains a key and value at the specified index, else false.
An index is invalid if it is less than zero or is greater than or equal to Count.