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