17 writes to RefName
System.Data (1)
fx\src\data\System\Data\DataSet.cs (1)
3293elem.RefName = new XmlQualifiedName(Keywords.XSD_SCHEMA, Keywords.XSDNS);
System.Runtime.Serialization (1)
System\Runtime\Serialization\SchemaExporter.cs (1)
781schemaRefElement.RefName = new XmlQualifiedName(Globals.SchemaLocalName, XmlSchema.Namespace);
System.ServiceModel (1)
System\ServiceModel\Description\MessageContractExporter.cs (1)
392element.RefName = new XmlQualifiedName(elementName, elementNs);
System.ServiceModel.Discovery (8)
System\ServiceModel\Discovery\SchemaUtility.cs (8)
294eprElement.RefName = discoveryVersion.Implementation.QualifiedNames.EprElement; 329eprElement.RefName = discoveryVersion.Implementation.QualifiedNames.EprElement; 333typesElement.RefName = discoveryVersion.Implementation.QualifiedNames.TypesElement; 338scopesElement.RefName = discoveryVersion.Implementation.QualifiedNames.ScopesElement; 343xAddrsElement.RefName = discoveryVersion.Implementation.QualifiedNames.XAddrsElement; 348metadataVersionElement.RefName = discoveryVersion.Implementation.QualifiedNames.MetadataVersionElement; 389typesElement.RefName = discoveryVersion.Implementation.QualifiedNames.TypesElement; 394scopesElement.RefName = discoveryVersion.Implementation.QualifiedNames.ScopesElement;
System.Web.Services (1)
System\Web\Services\Description\ServiceDescriptionSerializer.cs (1)
8756o.@RefName = ToXmlQualifiedName(Reader.Value);
System.Xml (5)
System\Xml\Schema\Inference\Infer.cs (2)
615elementReference.RefName = new XmlQualifiedName(localName, childURI); 2383newElement.RefName = copyElement.RefName;
System\Xml\Schema\XsdBuilder.cs (1)
1315builder.element.RefName = builder.ParseQName(value, "ref");
System\Xml\Serialization\XmlSchemaExporter.cs (2)
488schemaElement.RefName = new XmlQualifiedName("schema", XmlSchema.Namespace); 760refElement.RefName = new XmlQualifiedName(accessor.Name, accessor.Namespace);
85 references to RefName
System.Data (14)
fx\src\data\System\Data\DataSet.cs (2)
3600if (!(schema.RefName.Name == "schema" && schema.RefName.Namespace == XmlSchema.Namespace)) return null;
fx\src\data\System\Data\XMLSchema.cs (12)
478if (((XmlSchemaElement)el).RefName.Name.Length != 0) { 653if(sel.RefName.Name.Length != 0 ) { 785if (((el.Name == null) && (el.RefName.Name == table.EncodedTableName && el.RefName.Namespace == table.Namespace)) || 1321instanceName = el.Name != null ? el.Name : el.RefName.Name; 1679_type = isAttr ? attr.RefName.Name : el.RefName.Name; 1683typeNode = isAttr ? FindTypeNode((XmlSchemaAnnotated)attributes[attr.RefName]) :FindTypeNode((XmlSchemaAnnotated)elementsTable[el.RefName]); 2042XmlSchemaElement el = elem.Name != null ? elem : (XmlSchemaElement) elementsTable[elem.RefName]; 2161if (!elem.RefName.IsEmpty || elem.QualifiedName.Namespace != table.Namespace) 2276if(((XmlSchemaElement)el).RefName.Name.Length != 0) { 2312if ((((XmlSchemaElement)choiceEl).RefName.Name.Length != 0) && (!FromInference && ((XmlSchemaElement)choiceEl).MaxOccurs != Decimal.One && !(((XmlSchemaElement)choiceEl).SchemaType is XmlSchemaComplexType))) 2468DataTable table = InstantiateTable(node,(XmlSchemaComplexType)typeNode, (node.RefName != null)); // this is wrong , correct check should be node.RefName.IsEmpty
System.Runtime.Serialization (9)
System\Runtime\Serialization\SchemaImporter.cs (9)
605if (element != null && element.RefName != null && 606element.RefName.Namespace == Globals.SerializationNamespace && 620if (!serializationSchemaElements.ContainsKey(element.RefName.Name)) 991else if (!element.RefName.IsEmpty) 992ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.GetString(SR.ElementRefOnLocalElementNotSupported, element.RefName.Name, element.RefName.Namespace)); 1101else if (!element.RefName.IsEmpty) 1102ThrowArrayTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.GetString(SR.ElementRefOnLocalElementNotSupported, element.RefName.Name, element.RefName.Namespace));
System.ServiceModel (7)
System\ServiceModel\Description\MessageContractImporter.cs (7)
700if (element.SchemaTypeName.IsEmpty && element.RefName != null) 702return CheckAndAddPart(element.ElementSchemaType.QualifiedName, DataContractSerializerMessageContractImporter.StreamBodyTypeName, element.RefName.Name, GetLocalElementNamespace(element.RefName.Namespace, element, elementFormDefault), typeof(Stream), description, isReply); 1508if (!IsNullOrEmpty(element.RefName)) 1509return ImportParameterElement(element.RefName, isHeader, isMultiple); 1618if (!IsNullOrEmpty(element.RefName)) 1619element = FindSchemaElement(this.schemaSet, element.RefName);
System.Web.Services (2)
System\Web\Services\Description\SchemaCompiler.cs (1)
102item = Res.GetString(Res.XmlSchemaElementReference, e.RefName.ToString(), parentName.Name, parentName.Namespace);
System\Web\Services\Description\ServiceDescriptionSerializer.cs (1)
2252WriteAttribute(@"ref", @"", FromXmlQualifiedName(((global::System.Xml.XmlQualifiedName)o.@RefName)));
System.Xml (52)
System\Xml\Dom\DocumentSchemaValidator.cs (1)
106if (!schemaElement.RefName.IsEmpty) { //If it is element ref,
System\Xml\Schema\ContentValidator.cs (1)
946if (elem != null && (global ||!elem.RefName.IsEmpty)) {
System\Xml\Schema\Inference\Infer.cs (11)
1083else if ((el.RefName.Name == xtr.LocalName) && (el.RefName.Namespace == xtr.NamespaceURI)) 1114else if (el.RefName.Name == xtr.LocalName && el.RefName.Namespace == xtr.NamespaceURI) 1146else if (el.RefName.Name == xtr.LocalName && el.RefName.Namespace == xtr.NamespaceURI) 1359if (xse != null && xse.RefName != null) 1391if (xse != null && xse.RefName != null) 1393if (xse.RefName.Name == elementName && xse.RefName.Namespace == nsURI) 2383newElement.RefName = copyElement.RefName;
System\Xml\Schema\Preprocessor.cs (4)
1115if (element.RefName.IsEmpty) { 1119ValidateQNameAttribute(element, "ref", element.RefName); 1135element.SetQualifiedName(element.RefName); 1155if (!element.RefName.IsEmpty) {
System\Xml\Schema\SchemaCollectionCompiler.cs (5)
878if (!element.RefName.IsEmpty && substitution && (element.BlockResolved & XmlSchemaDerivationMethod.Substitution) == 0) { 1803if (!xe.RefName.IsEmpty) { 1804XmlSchemaElement e = (XmlSchemaElement)this.schema.Elements[xe.RefName]; 1806throw new XmlSchemaException(Res.Sch_UndeclaredElement, xe.RefName.ToString(), xe); 1810throw new XmlSchemaException(Res.Sch_RefInvalidElement, xe.RefName.ToString(), xe);
System\Xml\Schema\SchemaCollectionpreProcessor.cs (4)
805if (element.RefName.IsEmpty) { 809ValidateQNameAttribute(element, "ref", element.RefName); 825element.SetQualifiedName(element.RefName); 845if (!element.RefName.IsEmpty) {
System\Xml\Schema\SchemaSetCompiler.cs (6)
912if (localComplexType != null && localElement.SchemaTypeName == XmlQualifiedName.Empty && localElement.RefName == XmlQualifiedName.Empty) { //Only local elements 972if (!element.RefName.IsEmpty && (element.ElementDecl.Block & XmlSchemaDerivationMethod.Substitution) == 0) { 2149if (!xe.RefName.IsEmpty) { 2150XmlSchemaElement e = (XmlSchemaElement)elements[xe.RefName]; 2152throw new XmlSchemaException(Res.Sch_UndeclaredElement, xe.RefName.ToString(), xe); 2156throw new XmlSchemaException(Res.Sch_RefInvalidElement, xe.RefName.ToString(), xe);
System\Xml\Schema\XmlSchemaComplexType.cs (2)
491if (oldElem != null && (!oldElem.RefName.IsEmpty || !oldElem.SchemaTypeName.IsEmpty || 531if (elem != null && (!elem.RefName.IsEmpty || !elem.SchemaTypeName.IsEmpty ||
System\Xml\Schema\XmlSchemaValidator.cs (1)
1165else if (matchedElem.RefName.IsEmpty) { //It is not element ref but a local element
System\Xml\Schema\XsdBuilder.cs (1)
1981if (!builder.element.RefName.IsEmpty) {
System\Xml\Serialization\ImportContext.cs (2)
386if (!el.RefName.IsEmpty) { 387el = (XmlSchemaElement)schemas.Find(el.RefName, typeof(XmlSchemaElement), false);
System\Xml\Serialization\Mappings.cs (2)
1106if (e1.RefName != e2.RefName)
System\Xml\Serialization\SchemaObjectWriter.cs (2)
838if (!o.RefName.IsEmpty) { 839WriteAttribute("ref", "", o.RefName);
System\Xml\Serialization\SoapSchemaImporter.cs (3)
161if (!element.RefName.IsEmpty) { 162throw new InvalidOperationException(Res.GetString(Res.RefSyntaxNotSupportedForElements0, element.RefName.Name, element.RefName.Namespace));
System\Xml\Serialization\XmlSchemaImporter.cs (6)
288if (!element.RefName.IsEmpty) { 290ElementAccessor topAccessor = ImportElement(element.RefName, desiredMappingType, baseType); 1007if (!element.RefName.IsEmpty) 1008return FindElement(element.RefName); 1249if (!element.RefName.IsEmpty) 1251XmlSchemaElement refElement = FindElement(element.RefName);
System\Xml\Serialization\XmlSchemas.cs (1)
520item = Res.GetString(Res.XmlSchemaElementReference, e.RefName.ToString(), parentName.Name, parentName.Namespace);
System.Xml.Linq (1)
System\Xml\Linq\XNodeValidator.cs (1)
116XmlQualifiedName name = se.RefName;