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.153 -- Release Build+ada5559b3b674dd4675f3b08c42ff237a50f01ca
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