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.150 -- Release Build+0627019d4c17e2f915e64987b3f2371651facacb
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