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