Sgml.ElementDecl.FindAttribute C# (CSharp) 메소드

FindAttribute() 공개 메소드

Finds the attribute definition with the specified name.
If the attribute list has not yet been initialised.
public FindAttribute ( string name ) : AttDef
name string The name of the to find.
리턴 AttDef
        public AttDef FindAttribute(string name)
        {
            if (m_attList == null)
                throw new InvalidOperationException("The attribute list for the element declaration has not been initialised.");

            AttDef a;
            m_attList.TryGetValue(name.ToUpperInvariant(), out a);
            return a;
        }