Gemstone PhasorProtocols Library
Show/Hide TOC

# ConfigurationCellCollectionTryGetByIDCode Method

Attempts to get IConfigurationCell with the specified ID code.

## Definition

Namespace: Gemstone.PhasorProtocols
Assembly: Gemstone.PhasorProtocols (in Gemstone.PhasorProtocols.dll) Version: 1.0.159 -- Release Build+abd132cce9146ac407095c456214716c4203ac13
C#
View Source Request Example

    public virtual bool TryGetByIDCode(
    	ushort idCode,
    	out IConfigurationCell configurationCell
    )

VB
View Source Request Example

    Public Overridable Function TryGetByIDCode (
    	idCode As UShort,
    	<OutAttribute> ByRef configurationCell As IConfigurationCell
    ) As Boolean

C++
View Source Request Example

    public:
    virtual bool TryGetByIDCode(
    	unsigned short idCode,
    	[OutAttribute] IConfigurationCell^% configurationCell
    )

JavaScript
View Source Request Example

    function TryGetByIDCode(idCode, configurationCell);

#### Parameters

idCode UInt16
  The IDCode to find.
configurationCell IConfigurationCell
  When this method returns, contains the IConfigurationCell with the specified idCode, if found; otherwise, null is returned.

#### Return Value

Boolean
true if the ConfigurationCellCollection contains an element with the specified idCode; otherwise, false.

## See Also

#### Reference

ConfigurationCellCollection Class
Gemstone.PhasorProtocols Namespace