Sgml.ContentModel.CanContain C# (CSharp) Метод

CanContain() публичный Метод

Checks whether an element using this group can contain a specified element.
public CanContain ( string name, SgmlDtd dtd ) : bool
name string The name of the element to look for.
dtd SgmlDtd The DTD to use during the checking.
Результат bool
        public bool CanContain(string name, SgmlDtd dtd)
        {
            if (m_declaredContent != DeclaredContent.Default)
                return false; // empty or text only node.

            return m_model.CanContain(name, dtd);
        }
    }