System.Xml.DTDReader.GetPEDecl C# (CSharp) Méthode

GetPEDecl() private méthode

private GetPEDecl ( string peName ) : DTDParameterEntityDeclaration
peName string
Résultat DTDParameterEntityDeclaration
		private DTDParameterEntityDeclaration GetPEDecl (string peName)
		{
			DTDParameterEntityDeclaration peDecl =
				DTD.PEDecls [peName] as DTDParameterEntityDeclaration;
			if (peDecl != null) {
				if (peDecl.IsInternalSubset)
					throw NotWFError ("Parameter entity is not allowed in internal subset entity '" + peName + "'");
				return peDecl;
			}
			// See XML 1.0 section 4.1 for both WFC and VC.
			if ((DTD.SystemId == null && !DTD.InternalSubsetHasPEReference) || DTD.IsStandalone)
				throw NotWFError (String.Format ("Parameter entity '{0}' not found.",peName));
			HandleError (new XmlSchemaException (
				"Parameter entity " + peName + " not found.", null));
			return null;
		}