System.Xml.Schema.XmlSchemaValidator.ProcessEntity C# (CSharp) Méthode

ProcessEntity() private méthode

private ProcessEntity ( string name ) : void
name string
Résultat void
        private void ProcessEntity(string name)
        {
            if (!_checkEntity)
            {
                return;
            }
            IDtdEntityInfo entityInfo = null;
            if (_dtdSchemaInfo != null)
            {
                entityInfo = _dtdSchemaInfo.LookupEntity(name);
            }
            if (entityInfo == null)
            {
                // validation error, see xml spec [68]
                SendValidationEvent(SR.Sch_UndeclaredEntity, name);
            }
            else if (entityInfo.IsUnparsedEntity)
            {
                // validation error, see xml spec [68]
                SendValidationEvent(SR.Sch_UnparsedEntityRef, name);
            }
        }