Gurux.DLMS.Objects.GXDLMSObject.GetAttribute C# (CSharp) Méthode

GetAttribute() protected méthode

protected GetAttribute ( int index, GXAttributeCollection attributes ) : GXDLMSAttributeSettings
index int
attributes GXAttributeCollection
Résultat Gurux.DLMS.ManufacturerSettings.GXDLMSAttributeSettings
        protected GXDLMSAttributeSettings GetAttribute(int index, GXAttributeCollection attributes)
        {
            GXDLMSAttributeSettings att = this.Attributes.Find(index);
            if (att == null)
            {
                att = new GXDLMSAttributeSettings(index);
                //LN is read only.
                if (index == 1)
                {
                    att.Access = AccessMode.Read;
                }
                if (attributes != null)
                {
                    attributes.Add(att);
                }
            }
            return att;
        }