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.164 -- Release Build+e526f121ce33f6a601f5d1519047de17ef46ec99
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