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.155 -- Release Build+e0712c061c586a83529028b96d7dab34b7d8eae9
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