28 writes to Name
System.Runtime.Serialization (5)
System\Runtime\Serialization\SchemaExporter.cs (4)
118topLevelElement.Name = dataContract.TopLevelElementName.Value; 140element.Name = dataMember.Name; 375element.Name = collectionDataContract.ItemName; 386keyValueElement.Name = dataMember.Name;
System\Runtime\Serialization\SchemaImporter.cs (1)
145element.Name = Globals.SchemaLocalName;
System.ServiceModel (4)
System\ServiceModel\Description\MessageContractExporter.cs (3)
359element.Name = elementName; 379element.Name = elementName; 416wrapperGlobalElement.Name = elementName;
System\ServiceModel\Dispatcher\XPathMessageFilter.cs (1)
97element.Name = InnerElem;
System.ServiceModel.Discovery (4)
System\ServiceModel\Discovery\SchemaUtility.cs (4)
277metadataVersionElement.Name = ProtocolStrings.SchemaNames.MetadataVersionElement; 469scopesElement.Name = ProtocolStrings.SchemaNames.ScopesElement; 515typesElement.Name = ProtocolStrings.SchemaNames.TypesElement; 541xAddrsElement.Name = ProtocolStrings.SchemaNames.XAddrsElement;
System.Web.Services (2)
System\Web\Services\Description\HttpProtocolReflector.cs (1)
82element.Name = "String";
System\Web\Services\Description\ServiceDescriptionSerializer.cs (1)
8748o.@Name = Reader.Value;
System.Xml (13)
System\Xml\Schema\Inference\Infer.cs (4)
528xse.Name = localName; 546xse.Name = localName; 559xse.Name = localName; 2381newElement.Name = copyElement.Name;
System\Xml\Schema\XmlSchemaElement.cs (1)
304set { Name = value; }
System\Xml\Schema\XsdBuilder.cs (1)
1307builder.element.Name = value;
System\Xml\Serialization\SoapSchemaExporter.cs (1)
260element.Name = accessor.Name;
System\Xml\Serialization\SoapSchemaImporter.cs (1)
130element.Name = member.MemberName;
System\Xml\Serialization\XmlSchemaExporter.cs (2)
236element.Name = accessor.Name; 736element.Name = accessor.Name;
System\Xml\Serialization\XmlSchemaImporter.cs (2)
189element.Name = elementName; 259element.Name = member.MemberName;
System\Xml\Serialization\XmlSchemas.cs (1)
713element.Name = name;
92 references to Name
System.Data (10)
fx\src\data\System\Data\XMLSchema.cs (10)
716ds.DataSetName = XmlConvert.DecodeName(((XmlSchemaElement)elements[0]).Name); 785if (((el.Name == null) && (el.RefName.Name == table.EncodedTableName && el.RefName.Namespace == table.Namespace)) || 786(IsTable(el) && el.Name == table.TableName)) { 797if (child == null && this.FromInference && el.Name == table.TableName) { 803if (!this.FromInference || el.Name != table.TableName) {// check is required to support 1.1 inference behavior 1321instanceName = el.Name != null ? el.Name : el.RefName.Name; 2042XmlSchemaElement el = elem.Name != null ? elem : (XmlSchemaElement) elementsTable[elem.RefName]; 2214string dsName = node.Name; 2449throw ExceptionBuilder.CannotInstantiateAbstract(node.Name);
System.Runtime.Serialization (22)
System\Runtime\Serialization\SchemaExporter.cs (1)
566qname = new XmlQualifiedName(((XmlSchemaElement)item).Name, schema.TargetNamespace);
System\Runtime\Serialization\SchemaHelper.cs (2)
107if (schemaElement != null && schemaElement.Name == elementQName.Name) 224return new XmlQualifiedName(schemaElement.Name, schema.TargetNamespace);
System\Runtime\Serialization\SchemaImporter.cs (19)
297XmlQualifiedName currentElementName = new XmlQualifiedName(schemaElement.Name, schema.TargetNamespace); 365xmlDataContract.SetTopLevelElementName(new XmlQualifiedName(element.Name, ns)); 381throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(SR.GetString(SR.CannotComputeUniqueName, element.Name))); 617serializationSchemaElements.Add(schemaElement.Name, schemaElement); 971ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.GetString(SR.ElementMinOccursMustBe, element.Name)); 973ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.GetString(SR.ElementMaxOccursMustBe, element.Name)); 976string memberName = element.Name; 984ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.GetString(SR.FormMustBeQualified, element.Name)); 990memberTypeContract = ImportAnonymousElement(element, new XmlQualifiedName(String.Format(CultureInfo.InvariantCulture, "{0}.{1}Type", typeName.Name, element.Name), typeName.Namespace)); 1078dataContract.ItemName = element.Name; 1082ThrowArrayTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.GetString(SR.ArrayItemFormMustBe, element.Name)); 1089XmlQualifiedName shortName = new XmlQualifiedName(element.Name, typeName.Namespace); 1097XmlQualifiedName fullName = new XmlQualifiedName(String.Format(CultureInfo.InvariantCulture, "{0}.{1}Type", typeName.Name, element.Name), typeName.Namespace); 1118ThrowArrayTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.GetString(SR.InvalidKeyValueType, element.Name)); 1122ThrowArrayTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.GetString(SR.InvalidKeyValueTypeNamespace, element.Name, keyValueContract.Namespace)); 1369ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.GetString(SR.AbstractElementNotSupported, element.Name)); 1371ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.GetString(SR.DefaultOnElementNotSupported, element.Name)); 1373ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.GetString(SR.FixedOnElementNotSupported, element.Name)); 1375ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.GetString(SR.SubstitutionGroupOnElementNotSupported, element.Name));
System.ServiceModel (8)
System\ServiceModel\Description\MessageContractExporter.cs (1)
53XmlQualifiedName qname = new XmlQualifiedName(element.Name, elementNs);
System\ServiceModel\Description\MessageContractImporter.cs (3)
706return CheckAndAddPart(element.SchemaTypeName, DataContractSerializerMessageContractImporter.StreamBodyTypeName, element.Name, GetLocalElementNamespace(ns, element, elementFormDefault), typeof(Stream), description, isReply); 1511MessagePartDescription part = isHeader ? (MessagePartDescription)new MessageHeaderDescription(element.Name, ns) : new MessagePartDescription(element.Name, ns);
System\ServiceModel\Description\SchemaHelper.cs (4)
23XmlSchemaElement existingElement = (XmlSchemaElement)schema.Elements[new XmlQualifiedName(element.Name, schema.TargetNamespace)]; 28throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.SFxConflictingGlobalElement, element.Name, schema.TargetNamespace, GetTypeName(element), GetTypeName(existingElement)))); 106Fx.Assert(e1.Name == e2.Name, "");
System.ServiceModel.Web (4)
System\ServiceModel\Dispatcher\HelpExampleGenerator.cs (4)
384context.writer.WriteStartElement(null, element.Name, null); 725validTypes.AppendFormat(", {0}", derivedElement.Name); 729validTypes.AppendFormat(SR2.GetString(SR2.HelpPageValidElementOfType, derivedElement.Name)); 747DerivesFrom((XmlSchemaComplexType)element.ElementSchemaType, (XmlSchemaComplexType)e.ElementSchemaType)).OrderBy(e => e.Name))
System.Web.Services (6)
System\Web\Services\Description\SchemaCompiler.cs (3)
99if (e.Name == null || e.Name.Length == 0) { 105item = Res.GetString(Res.XmlSchemaNamedItem, ns, "element", e.Name, details);
System\Web\Services\Description\ServiceDescriptionSerializer.cs (3)
2246if ((((global::System.String)o.@Name) != null) && (((global::System.String)o.@Name).Length != 0)) { 2247WriteAttribute(@"name", @"", ((global::System.String)o.@Name));
System.Xml (42)
System\Xml\Schema\Inference\Infer.cs (6)
225if (elem.Name == xtr.LocalName && elem.QualifiedName.Namespace == xtr.NamespaceURI) 1077if ((el.Name == xtr.LocalName) &&( parentSchema.TargetNamespace == childURI)) 1105if (el.Name == xtr.LocalName && parentSchema.TargetNamespace == childURI) 1135if (el.Name == xtr.LocalName && parentSchema.TargetNamespace == childURI) 1361if (xse.Name == elementName) 2381newElement.Name = copyElement.Name;
System\Xml\Schema\Preprocessor.cs (4)
1066if (element.Name != null) { 1068element.SetQualifiedName(new XmlQualifiedName(element.Name, this.targetNamespace)); 1108if (element.Name != null) { // name 1111element.SetQualifiedName(new XmlQualifiedName(element.Name, (element.Form == XmlSchemaForm.Qualified || (element.Form == XmlSchemaForm.None && this.elementFormDefault == XmlSchemaForm.Qualified))? this.targetNamespace : null));
System\Xml\Schema\SchemaCollectionpreProcessor.cs (4)
756if (element.Name != null) { 758element.SetQualifiedName(new XmlQualifiedName(element.Name, this.targetNamespace)); 798if (element.Name != null) { // name 801element.SetQualifiedName(new XmlQualifiedName(element.Name, (element.Form == XmlSchemaForm.Qualified || (element.Form == XmlSchemaForm.None && this.elementFormDefault == XmlSchemaForm.Qualified))? this.targetNamespace : null));
System\Xml\Schema\XmlSchemaElement.cs (1)
303get { return Name; }
System\Xml\Serialization\Mappings.cs (3)
1094if (e.Name == element.Name && e.QualifiedName.Namespace == elementNs) { 1098throw new InvalidOperationException(Res.GetString(Res.XmlSerializableRootDupName, getSchemaMethod.DeclaringType.FullName, e.Name, elementNs));
System\Xml\Serialization\SchemaObjectWriter.cs (3)
829if (o.Name != null && o.Name.Length != 0) { 830WriteAttribute(@"name", @"", o.Name);
System\Xml\Serialization\SoapSchemaImporter.cs (7)
165if (element.Name.Length == 0) { 172accessor.Name = element.Name; 190throw new InvalidOperationException(Res.GetString(Res.XmlInvalidSchemaElementType, parentType.Name, parentType.Namespace, element.Name)); 194throw new InvalidOperationException(Res.GetString(Res.XmlInvalidSchemaElementType, parentType.Name, parentType.Namespace, element.Name)); 203throw new InvalidOperationException(Res.GetString(Res.XmlElementMissingType, parentType.Name, parentType.Namespace, element.Name)); 274throw new InvalidOperationException(Res.GetString(Res.XmlInvalidSchemaElementType, parentType.Name, parentType.Namespace, element.Name)); 389arrayAccessor.Name = element.Name;
System\Xml\Serialization\XmlSchemaExporter.cs (1)
282throw new InvalidOperationException(Res.GetString(Res.XmlIllegalForm, e.Name));
System\Xml\Serialization\XmlSchemaImporter.cs (9)
300if (element.Name.Length == 0) { 304string unescapedName = Accessor.UnescapeName(element.Name); 312accessor.Name = element.Name; 368throw new InvalidOperationException(Res.GetString(Res.XmlElementImportedTwice, element.Name, ns, mapping.GetType().Name, desiredMappingType.Name)); 1022equivalentElement.SubstitutionGroup.Name == element.Name) { 1042identifier = CodeIdentifier.MakeValid(Accessor.UnescapeName(element.Name)); 1044identifier += CodeIdentifier.MakePascal(Accessor.UnescapeName(element.Name)); 1171arrayAccessor.Name = element.Name; 1252string refElementIdentifier = CodeIdentifier.MakeValid(Accessor.UnescapeName(refElement.Name));
System\Xml\Serialization\XmlSchemas.cs (4)
465return ((XmlSchemaElement)o).Name; 517if (e.Name == null || e.Name.Length == 0) { 523item = Res.GetString(Res.XmlSchemaNamedItem, ns, "element", e.Name, details);