831 references to Namespace
PresentationFramework (14)
src\Framework\MS\Internal\Annotations\Anchoring\DataIdProcessor.cs (2)
215throw new ArgumentException(SR.Get(SRID.IncorrectLocatorPartType, locatorPart.PartType.Namespace + ":" + locatorPart.PartType.Name), "locatorPart"); 224throw new ArgumentException(SR.Get(SRID.IncorrectLocatorPartType, locatorPart.PartType.Namespace + ":" + locatorPart.PartType.Name), "locatorPart");
src\Framework\MS\Internal\Annotations\Anchoring\FixedPageProcessor.cs (2)
187throw new ArgumentException(SR.Get(SRID.IncorrectLocatorPartType, locatorPart.PartType.Namespace + ":" + locatorPart.PartType.Name), "locatorPart"); 198throw new ArgumentException(SR.Get(SRID.IncorrectLocatorPartType, locatorPart.PartType.Namespace + ":" + locatorPart.PartType.Name), "locatorPart");
src\Framework\MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (1)
518throw new ArgumentException(SR.Get(SRID.IncorrectLocatorPartType, locatorPart.PartType.Namespace + ":" + locatorPart.PartType.Name), "locatorPart");
src\Framework\MS\Internal\Annotations\Anchoring\TextSelectionProcessor.cs (1)
216throw new ArgumentException(SR.Get(SRID.IncorrectLocatorPartType, locatorPart.PartType.Namespace + ":" + locatorPart.PartType.Name), "locatorPart");
src\Framework\System\Windows\Annotations\Annotation.cs (3)
117if (String.IsNullOrEmpty(annotationType.Namespace)) 156if (String.IsNullOrEmpty(annotationType.Namespace)) 239writer.WriteQualifiedName(_typeName.Name, _typeName.Namespace);
src\Framework\System\Windows\Annotations\LocatorPart.cs (3)
62if (String.IsNullOrEmpty(partType.Namespace)) 373string prefix = namespaceManager.LookupPrefix(this.PartType.Namespace); 402string prefix = namespaceManager.LookupPrefix(this.PartType.Namespace);
src\Framework\System\Windows\Annotations\LocatorPartList.cs (2)
191prefix = writer.LookupPrefix(part.PartType.Namespace); 201writer.WriteStartElement(prefix, part.PartType.Name, part.PartType.Namespace);
System.Data (40)
fx\src\data\System\Data\DataSet.cs (2)
3600if (!(schema.RefName.Name == "schema" && schema.RefName.Namespace == XmlSchema.Namespace)) return null; 3653IList values = schemas.GetSchemas(element.QualifiedName.Namespace);
fx\src\data\System\Data\SimpleType.cs (4)
52ns = (node.QualifiedName != null) ? node.QualifiedName.Namespace : ""; 80info.AddValue("SimpleType.XmlBaseType.Namespace", xmlQN != null ? xmlQN.Namespace : null); 96if ((ancestor != null) && (ancestor.QualifiedName.Namespace != Keywords.XSDNS)) { // I'm assuming that built-in types don't have a name! 104if (content.BaseTypeName.Namespace == Keywords.XSDNS)
fx\src\data\System\Data\SQLTypes\SqlTypesSchemaImporter.cs (1)
100if ((0 == string.CompareOrdinal(m_name, qname.Name)) && (0 == string.CompareOrdinal(m_targetNamespace, qname.Namespace))) {
fx\src\data\System\Data\xmlsaver.cs (5)
1179string tgNamespace = table.TypeName.IsEmpty ? table.Namespace : table.TypeName.Namespace; 1273if ((col.Namespace != (col.Table.TypeName.IsEmpty ? col.Table.Namespace : col.Table.TypeName.Namespace)) && (col.Namespace.Length != 0)) 1565XmlElement typeSchema = GetSchema(table.TypeName.Namespace); 1566if (Common.ADP.IsEmpty(table.TypeName.Namespace)) { 1584root.SetAttribute( Keywords.TYPE, NewDiffgramGen.QualifiedName((string)prefixes[table.TypeName.Namespace], table.TypeName.Name) );
fx\src\data\System\Data\XMLSchema.cs (28)
359DataTable table = _ds.Tables.GetTable(XmlConvert.DecodeName(typeName), element.QualifiedName.Namespace); 676if (RefTables.Contains(element.QualifiedName.Namespace +":"+ typeName)) { 785if (((el.Name == null) && (el.RefName.Name == table.EncodedTableName && el.RefName.Namespace == table.Namespace)) || 865if (attributeGroup.RedefinedAttributeGroup != null && attributeGroupRef.RefName == new XmlQualifiedName(attributeGroup.Name, attributeGroupRef.RefName.Namespace)) { 905if (ccExtension.BaseTypeName.Namespace != Keywords.XSDNS){ 1231_TableUri = node.QualifiedName.Namespace; 1341_TableUri = node.QualifiedName.Namespace; 1674String _typeNs = isAttr ? attr.SchemaTypeName.Namespace : el.SchemaTypeName.Namespace; 1701if (typeNode.QualifiedName.Name != null && typeNode.QualifiedName.Name.Length != 0 && typeNode.QualifiedName.Namespace != Keywords.XSDNS) { // this means UDSimpleType 1708if ((ancestor != null) && (ancestor.QualifiedName.Namespace != Keywords.XSDNS)) { 1916if (attr.SchemaTypeName.Namespace != Keywords.XSDNS) // it is UD Simple Type, can it be? 1927if (node.QualifiedName.Name != null && node.QualifiedName.Name.Length != 0 && node.QualifiedName.Namespace != Keywords.XSDNS) { // this means UDSimpleType 1965if ((Common.ADP.IsEmpty(attrib.QualifiedName.Namespace) && Common.ADP.IsEmpty(column._columnUri)) || // backward compatability :SQL BU DT 310912 1966(string.Compare(attrib.QualifiedName.Namespace, column.Namespace, StringComparison.Ordinal) == 0)) 2000column.Namespace = attrib.QualifiedName.Namespace; 2067if (((XmlSchemaSimpleType)typeNode).Name != null && ((XmlSchemaSimpleType)typeNode).Name.Length != 0 && ((XmlSchemaSimpleType)typeNode).QualifiedName.Namespace != Keywords.XSDNS) { 2074simpleTypeNode = (xsdType.XmlBaseType!= null && xsdType.XmlBaseType.Namespace != Keywords.XSDNS) ? 2079simpleTypeNode = (xsdType.XmlBaseType!= null && xsdType.XmlBaseType.Namespace != Keywords.XSDNS) ? 2125if ((Common.ADP.IsEmpty(elem.QualifiedName.Namespace) && Common.ADP.IsEmpty(column._columnUri)) || // backward compatability :SQL BU DT 310912 2126(string.Compare(elem.QualifiedName.Namespace, column.Namespace, StringComparison.Ordinal) == 0)) 2161if (!elem.RefName.IsEmpty || elem.QualifiedName.Namespace != table.Namespace) 2163column.Namespace = elem.QualifiedName.Namespace; 2180column.Namespace = elem.QualifiedName.Namespace; 2215string dsNamespace = node.QualifiedName.Namespace; 2281DataTable tempTable = _ds.Tables.GetTable(XmlConvert.DecodeName(GetInstanceName((XmlSchemaElement)el)), node.QualifiedName.Namespace); 2367if (qualifiedNames[i].Namespace == ns) 2381return qualifiedNames[i].Namespace;
System.Data.Entity (1)
System\Data\Objects\ProxyDataContractResolver.cs (1)
49typeNamespace = new XmlDictionaryString(dictionary, qualifiedName.Namespace, 1);
System.Data.Services.Design (1)
System\Data\Services\Design\Xml\XNodeSchemaApplier.cs (1)
223if (name.Namespace.Length == 0)
System.Data.SqlXml (38)
System\Xml\Xsl\IlGen\XmlILConstructAnalyzer.cs (2)
795if ((object) qnameDup.Name == (object) qname.Name && (object) qnameDup.Namespace == (object) qname.Namespace) {
System\Xml\Xsl\Runtime\XmlQueryOutput.cs (5)
1370prefix = (name.Namespace.Length != 0) ? RemapPrefix(string.Empty, name.Namespace, nodeType == XPathNodeType.Element) : string.Empty; 1371prefix = EnsureValidName(prefix, name.Name, name.Namespace, nodeType); 1374WriteStartElement(prefix, name.Name, name.Namespace); 1376WriteStartAttribute(prefix, name.Name, name.Namespace);
System\Xml\Xsl\Runtime\XsltFunctions.cs (2)
187if (name.Namespace == XmlReservedNs.NsXslt) { 194} else if (name.Namespace == XmlReservedNs.NsMsxsl && name.Name == "version") {
System\Xml\Xsl\Runtime\XsltLibrary.cs (5)
139if (QilGenerator.IsFunctionAvailable(name.Name, name.Namespace)) { 144if (name.Namespace.Length == 0 || name.Namespace == XmlReservedNs.NsXslt) { 149if (runtime.ExternalContext.LateBoundFunctionExists(name.Name, name.Namespace)) { 154return runtime.EarlyBoundFunctionExists(name.Name, name.Namespace);
System\Xml\Xsl\XmlQualifiedNameTest.cs (9)
77get { return (object)this.Namespace == (object)wildcard; } 87|| (this.exclude == other.exclude && this.Namespace == other.Namespace) 88|| (other.exclude && !this.exclude && this.Namespace != other.Namespace); 113if (this.Namespace.Length == 0) { 116else if ((object)this.Namespace == (object)wildcard) { 120return "{~" + this.Namespace + "}:" + this.Name; 123return "{" + this.Namespace + "}:" + this.Name;
System\Xml\Xsl\XmlQueryType.cs (4)
626else if (name.Namespace.Length == 0) { 629else if (name.Namespace == XmlReservedNs.NsXs) { 632else if (name.Namespace == XmlReservedNs.NsXQueryDataType) { 636return "{" + name.Namespace + "}" + name.Name;
System\Xml\Xsl\Xslt\QilGeneratorEnv.cs (8)
291if (name.Namespace == XmlReservedNs.NsXslt) { 509QilNode name = f.QName(resolvedName.Name, resolvedName.Namespace); 557name = f.QName(qname.Name, qname.Namespace); 571name = f.QName(qname.Name, qname.Namespace); 584if (qname.Namespace.Length == 0 || qname.Namespace == XmlReservedNs.NsXslt) { 585return f.Boolean(QilGenerator.IsFunctionAvailable(qname.Name, qname.Namespace)); 589name = f.QName(qname.Name, qname.Namespace);
System\Xml\Xsl\Xslt\XsltQilFactory.cs (1)
140QName(format.Name.Name, format.Name.Namespace),
System\Xml\Xsl\XsltOld\Processor.cs (1)
200object parameter = args.GetParam(qname.Name, qname.Namespace);
System\Xml\Xsl\XsltOld\XsltOutput.cs (1)
191if(method.Namespace.Length != 0) {
System.IdentityModel (16)
System\IdentityModel\Metadata\MetadataSerializer.cs (4)
2058writer.WriteStartElement(element.Name, element.Namespace); 2413writer.WriteStartElement(element.Name, element.Namespace); 2537writer.WriteStartElement(element.Name, element.Namespace); 2574writer.WriteStartElement(element.Name, element.Namespace);
System\IdentityModel\Tokens\Saml2SecurityTokenHandler.cs (3)
2334throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID4110, parentElement, declaredType.Name, declaredType.Namespace)); 4923throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID4105, declaredType.Name, declaredType.Namespace)); 5263throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID4112, type.Name, type.Namespace));
System\IdentityModel\Tokens\SamlAuthorityBinding.cs (3)
184if (!string.IsNullOrEmpty(this.authorityKind.Namespace)) 186writer.WriteAttributeString(String.Empty, dictionary.NamespaceAttributePrefix.Value, null, this.authorityKind.Namespace); 187prefix = writer.LookupPrefix(this.authorityKind.Namespace);
System\IdentityModel\Tokens\SamlSecurityTokenHandler.cs (3)
3066if (!string.IsNullOrEmpty(authorityBinding.AuthorityKind.Namespace)) 3068writer.WriteAttributeString(String.Empty, SamlConstants.AttributeNames.NamespaceAttributePrefix, null, authorityBinding.AuthorityKind.Namespace); 3069prefix = writer.LookupPrefix(authorityBinding.AuthorityKind.Namespace);
System\IdentityModel\XmlUtil.cs (3)
142&& StringComparer.Ordinal.Equals(namespaceUri, qname.Namespace); 191else if (!(StringComparer.Ordinal.Equals(expectedTypeNamespace, declaredType.Namespace) 195SR.GetString(SR.ID4102, expectedTypeName, expectedTypeNamespace, declaredType.Name, declaredType.Namespace));
System.Runtime.Serialization (196)
System\Runtime\Serialization\ClassDataContract.cs (8)
347string ns = DataContract.GetStableName(childType).Namespace; 698this.Namespace = dictionary.Add(StableName.Namespace); 741Namespace = dictionary.Add(StableName.Namespace); 1027membersInHierarchy.Add(new Member(member, this.StableName.Namespace, baseTypeIndex)); 1035membersInHierarchy.Add(new Member(member, currContract.StableName.Namespace, baseTypeIndex)); 1185ThrowInvalidDataContractException(SR.GetString(SR.ValueTypeCannotHaveBaseType, StableName.Name, StableName.Namespace, baseContract.StableName.Name, baseContract.StableName.Namespace)); 1432boundClassContract.StableName = CreateQualifiedName(DataContract.ExpandGenericParameters(XmlConvert.DecodeName(stableName.Name), new GenericNameProvider(DataContract.GetClrTypeFullName(this.UnderlyingType), genericParams)), stableName.Namespace);
System\Runtime\Serialization\CodeExporter.cs (31)
67this.clrNamespaces.Add(clrNamespace, dataContract.StableName.Namespace); 68this.namespaces.Add(dataContract.StableName.Namespace, clrNamespace); 312throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(SR.GetString(SR.TypeCannotBeImported, typeName.Name, typeName.Namespace, SR.GetString(SR.CircularTypeReference, classContract.StableName.Name, classContract.StableName.Namespace)))); 424CodeNamespace ns = GetCodeNamespace(clrNamespace, dataContract.StableName.Namespace, contractCodeDomInfo); 476DataContract containingDataContract = dataContractSet[new XmlQualifiedName(containingTypeName, dataContract.StableName.Namespace)]; 554throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ReferencedTypeDoesNotMatch, type.AssemblyQualifiedName, dataContract.StableName.Name, dataContract.StableName.Namespace))); 563throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(SR.GetString(SR.TypeMustBeIXmlSerializable, DataContract.GetClrTypeFullName(type), DataContract.GetClrTypeFullName(Globals.TypeOfIXmlSerializable), dataContract.StableName.Name, dataContract.StableName.Namespace))); 572throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ReferencedTypeDoesNotMatch, type.AssemblyQualifiedName, dataContract.StableName.Name, dataContract.StableName.Namespace))); 579throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(SR.GetString(SR.GenericTypeNameMismatch, dataContract.StableName.Name, dataContract.StableName.Namespace, genericStableName.Name, genericStableName.Namespace))); 588referencedContract.StableName.Namespace))); 631return (collectionContract.StableName.Name == expectedType.Name && collectionContract.StableName.Namespace == expectedType.Namespace); 681dataContract.StableName.Namespace, 824dataContractAttribute.Arguments.Add(new CodeAttributeArgument(Globals.NamespaceProperty, new CodePrimitiveExpression(classDataContract.StableName.Namespace))); 1072throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.CannotDeriveFromSealedReferenceType, dataContract.StableName.Name, dataContract.StableName.Namespace, DataContract.GetClrTypeFullName(baseType)))); 1093dataContractAttribute.Arguments.Add(new CodeAttributeArgument(Globals.NamespaceProperty, new CodePrimitiveExpression(enumDataContract.StableName.Namespace))); 1125if (DataContract.GetDefaultStableNamespace(contractCodeDomInfo.ClrNamespace) != dataContract.StableName.Namespace) 1126throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(SR.GetString(SR.InvalidClrNamespaceGeneratedForISerializable, dataContract.StableName.Name, dataContract.StableName.Namespace, DataContract.GetDataContractNamespaceFromUri(dataContract.StableName.Namespace), contractCodeDomInfo.ClrNamespace))); 1131throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(SR.GetString(SR.InvalidClrNameGeneratedForISerializable, dataContract.StableName.Name, dataContract.StableName.Namespace, contractCodeDomInfo.TypeDeclaration.Name))); 1199collectionContract.StableName.Namespace))); 1222string expectedTypeNs = DataContract.GetCollectionNamespace(itemContract.StableName.Namespace); 1224dataContractName, collectionContract.StableName.Namespace, 1234collectionContractAttribute.Arguments.Add(new CodeAttributeArgument(Globals.NamespaceProperty, new CodePrimitiveExpression(collectionContract.StableName.Namespace))); 1293typeNameField.InitExpression = new CodeObjectCreateExpression(Globals.TypeOfXmlQualifiedName, new CodePrimitiveExpression(typeName.Name), new CodePrimitiveExpression(typeName.Namespace)); 1300(xmlDataContract.TopLevelElementNamespace != null && xmlDataContract.TopLevelElementNamespace.Value != xmlDataContract.StableName.Namespace); 1434if (!Namespaces.TryGetValue(dataContract.StableName.Namespace, out clrNamespace)) 1442clrNamespace = GetClrNamespace(dataContract.StableName.Namespace); 1456AddNamespacePair(dataContract.StableName.Namespace, clrNamespace);
System\Runtime\Serialization\CollectionDataContract.cs (4)
565this.Namespace = dictionary.Add(this.StableName.Namespace); 604this.StableName = CreateQualifiedName(Globals.ArrayPrefix + itemContract.StableName.Name, itemContract.StableName.Namespace); 1248IsCollectionDataContract(UnderlyingType) ? this.StableName.Namespace : DataContract.GetCollectionNamespace(boundCollectionContract.ItemContract.StableName.Namespace));
System\Runtime\Serialization\DataContract.cs (13)
1258this.Namespace = dictionary.Add(stableName.Namespace); 1595ns = GetCollectionNamespace(elementStableName.Namespace); 1625string ns = GetCollectionNamespace(itemName.Namespace); 1679namespaces.Append(" ").Append(qname.Namespace); 1681parametersFromBuiltInNamespaces = IsBuiltInNamespace(qname.Namespace); 1879ns = dataContract.StableName.Namespace; 2250throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.DupContractInKnownTypes, type, alreadyExistingContract.UnderlyingType, dataContract.StableName.Namespace, dataContract.StableName.Name))); 2279return (StableName.Name == dataContract.StableName.Name && StableName.Namespace == dataContract.StableName.Namespace && IsReference == dataContract.IsReference); 2497namespaces.Append(" ").Append(GetStableName(j).Namespace); 2514parametersFromBuiltInNamespaces = DataContract.IsBuiltInNamespace(GetStableName(j).Namespace); 2577return new XmlQualifiedName(DataContract.EncodeLocalName(DataContract.ExpandGenericParameters(XmlConvert.DecodeName(stableName.Name), this)), stableName.Namespace); 2582return stableName.Namespace;
System\Runtime\Serialization\DataContractSet.cs (5)
134throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.DupContractInDataContractSet, dataContract.StableName.Name, dataContract.StableName.Namespace))); 138throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.DupTypeContractInDataContractSet, (typeNamesEqual ? dataContract.UnderlyingType.AssemblyQualifiedName : DataContract.GetClrTypeFullName(dataContract.UnderlyingType)), (typeNamesEqual ? dataContractInSet.UnderlyingType.AssemblyQualifiedName : DataContract.GetClrTypeFullName(dataContractInSet.UnderlyingType)), dataContract.StableName.Name, dataContract.StableName.Namespace))); 304DataContract dataContract = DataContract.GetBuiltInDataContract(key.Name, key.Namespace); 320if (DataContract.GetBuiltInDataContract(key.Name, key.Namespace) != null) 489stableName.Namespace,
System\Runtime\Serialization\EnumDataContract.cs (3)
200Namespace = dictionary.Add(StableName.Namespace); 231ThrowInvalidDataContractException(SR.GetString(SR.InvalidEnumBaseType, value.Name, value.Namespace, StableName.Name, StableName.Namespace));
System\Runtime\Serialization\Json\JsonWriterDelegator.cs (1)
51writer.WriteString(value.Namespace);
System\Runtime\Serialization\Json\XmlObjectSerializerReadContextComplexJson.cs (1)
154string serverTypeNamespace = qualifiedTypeName.Namespace;
System\Runtime\Serialization\Json\XmlObjectSerializerWriteContextComplexJson.cs (1)
356throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(SR.GetString(SR.DcTypeNotFoundOnSerialize, DataContract.GetClrTypeFullName(dataContract.UnderlyingType), dataContract.StableName.Name, dataContract.StableName.Namespace)));
System\Runtime\Serialization\SchemaExporter.cs (22)
93XmlSchema schema = GetSchema(dataContract.StableName.Namespace); 114if (schema == null || dataContract.StableName.Namespace != dataContract.TopLevelElementNamespace.Value) 147SchemaHelper.AddSchemaImport(memberTypeContract.StableName.Namespace, schema); 201if (element.SchemaTypeName.Namespace.Equals(Globals.SerializationNamespace)) 204SchemaHelper.AddSchemaImport(dataContract.StableName.Namespace, schema); 228XmlElement defaultValueElement = XmlDoc.CreateElement(DefaultValueAnnotation.Name, DefaultValueAnnotation.Namespace); 243XmlElement actualTypeElement = xmlDoc.CreateElement(ActualTypeAnnotationName.Name, ActualTypeAnnotationName.Namespace); 250nsAttribute.Value = typeName.Namespace; 298dcqname = new XmlQualifiedName(collectionName, DataContract.GetCollectionNamespace(dcqname.Namespace)); 308nsAttribute.Value = dcqname.Namespace; 353SurrogateDataAnnotationName.Name, SurrogateDataAnnotationName.Namespace, knownTypes, Int32.MaxValue, 415XmlElement isDictionaryElement = XmlDoc.CreateElement(IsDictionaryAnnotationName.Name, IsDictionaryAnnotationName.Namespace); 430SchemaHelper.AddSchemaImport(enumDataContract.BaseContractName.Namespace, schema); 479SchemaHelper.AddSchemaImport(ISerializableFactoryTypeAttribute.RefName.Namespace, schema); 488SchemaHelper.AddSchemaImport(baseTypeName.Namespace, schema); 528if (anonymousType == null && xsdType == null && typeQName.Namespace != XmlSchema.Namespace) 542SR.GetString(SR.TraceCodeXsdExportAnnotationFailed), new StringTraceRecord("Type", typeQName.Namespace + ":" + typeQName.Name)); 583{ "Name", qname.Namespace + ":" + qname.Name } 704AddDefaultDatasetType(schemas, stableName.Name, stableName.Namespace); 710AddDefaultTypedDatasetType(schemas, schema, stableName.Name, stableName.Namespace); 838XmlElement annotationElement = XmlDoc.CreateElement(annotationQualifiedName.Name, annotationQualifiedName.Namespace); 839SchemaHelper.AddSchemaImport(annotationQualifiedName.Namespace, schema);
System\Runtime\Serialization\SchemaHelper.cs (4)
45string ns = typeQName.Namespace; 83string ns = typeName.Namespace; 98string ns = elementQName.Namespace; 209string ns = typeQName.Namespace;
System\Runtime\Serialization\SchemaImporter.cs (79)
377typeQName = new XmlQualifiedName(typeQName.Name + i.ToString(NumberFormatInfo.InvariantInfo), typeQName.Namespace); 392DataContract dataContract = DataContract.GetBuiltInDataContract(typeName.Name, typeName.Namespace); 397throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(SR.GetString(SR.SpecifiedTypeNotFoundInSchema, typeName.Name, typeName.Namespace))); 423ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.GetString(SR.RedefineNotSupported)); 431ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.GetString(SR.SimpleTypeUnionNotSupported)); 463ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.GetString(SR.SimpleContentNotSupported)); 468ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.GetString(SR.MixedContentNotSupported)); 482ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.GetString(SR.ComplexTypeRestrictionNotSupported)); 489ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, String.Empty); 606element.RefName.Namespace == Globals.SerializationNamespace && 640ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.GetString(SR.RootParticleMustBeSequence)); 645ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.GetString(SR.RootSequenceMustBeRequired)); 647ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.GetString(SR.RootSequenceMaxOccursMustBe)); 678ThrowTypeCannotBeImportedException(dataContract.StableName.Name, dataContract.StableName.Namespace, SR.GetString(SR.DerivedTypeNotISerializable, baseTypeName.Name, baseTypeName.Namespace)); 694ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.GetString(SR.MustContainOnlyLocalElements)); 736SR.GetString(SR.TraceCodeXsdImportAnnotationFailed), new StringTraceRecord("Type", typeName.Namespace + ":" + typeName.Name)); 833ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.GetString(SR.IsValueTypeFormattedIncorrectly, isValueTypeInnerText, fe.Message)); 856ThrowISerializableTypeCannotBeImportedException(dataContract.StableName.Name, dataContract.StableName.Namespace, SR.GetString(SR.BaseTypeNotISerializable, baseTypeName.Name, baseTypeName.Namespace)); 858ThrowISerializableTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.GetString(SR.ISerializableDerivedContainsOneOrMoreItems)); 867ThrowISerializableTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.GetString(SR.ISerializableDoesNotContainAny)); 870ThrowISerializableTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.GetString(SR.ISerializableDoesNotContainAny)); 872ThrowISerializableTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.GetString(SR.ISerializableContainsMoreThanOneItems)); 876ThrowISerializableTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.GetString(SR.ISerializableDoesNotContainAny)); 881ThrowISerializableTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.GetString(SR.ISerializableWildcardMinOccursMustBe, iSerializableWildcardElement.MinOccurs)); 883ThrowISerializableTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.GetString(SR.ISerializableWildcardMaxOccursMustBe, iSerializableWildcardElement.MaxOccursString)); 885ThrowISerializableTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.GetString(SR.ISerializableWildcardNamespaceInvalid, iSerializableWildcardElement.Namespace)); 887ThrowISerializableTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.GetString(SR.ISerializableWildcardProcessContentsInvalid, iSerializableWildcardElement.ProcessContents)); 907ThrowISerializableTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.GetString(SR.ISerializableMustRefFactoryTypeAttribute, factoryTypeAttributeRefName.Name, factoryTypeAttributeRefName.Namespace)); 922ThrowTypeCannotBeImportedException(dataContract.StableName.Name, dataContract.StableName.Namespace, SR.GetString(dataContract.IsISerializable ? SR.InvalidISerializableDerivation : SR.InvalidClassDerivation, baseTypeName.Name, baseTypeName.Namespace)); 956ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.GetString(SR.AnonymousTypeNotSupported, typeName.Name, typeName.Namespace)); 961ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.GetString(SR.TopLevelElementRepresentsDifferentType, topLevelElement.SchemaTypeName.Name, topLevelElement.SchemaTypeName.Namespace)); 971ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.GetString(SR.ElementMinOccursMustBe, element.Name)); 973ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.GetString(SR.ElementMaxOccursMustBe, 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)); 992ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.GetString(SR.ElementRefOnLocalElementNotSupported, element.RefName.Name, element.RefName.Namespace)); 1007throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(SR.GetString(SR.InvalidEmitDefaultAnnotation, memberName, typeName.Name, typeName.Namespace))); 1022ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.GetString(SR.CannotHaveDuplicateElementNames, memberName)); 1029dataContractSet.SetSurrogateData(dataMember, ImportSurrogateData(ImportAnnotation(element.Annotation, surrogateDataAnnotationName), surrogateDataAnnotationName.Name, surrogateDataAnnotationName.Namespace)); 1042throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(SR.GetString(SR.AnnotationAttributeNotFound, SchemaExporter.DefaultValueAnnotation.Name, typeName.Name, typeName.Namespace, Globals.EmitDefaultValueAttribute))); 1055throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(SR.GetString(SR.AnnotationAttributeNotFound, SchemaExporter.ActualTypeAnnotationName.Name, typeName.Name, typeName.Namespace, Globals.ActualTypeNameAttribute))); 1059throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(SR.GetString(SR.AnnotationAttributeNotFound, SchemaExporter.ActualTypeAnnotationName.Name, typeName.Name, typeName.Namespace, Globals.ActualTypeNamespaceAttribute))); 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); 1102ThrowArrayTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.GetString(SR.ElementRefOnLocalElementNotSupported, element.RefName.Name, element.RefName.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)); 1135dataContract.ItemContract.StableName = new XmlQualifiedName(genericInfo.GetExpandedStableName().Name, typeName.Namespace); 1169ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.GetString(SR.IsDictionaryFormattedIncorrectly, isDictionaryInnerText, fe.Message)); 1179ThrowEnumTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.GetString(SR.EnumListMustContainAnonymousType)); 1183ThrowEnumTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.GetString(SR.EnumUnionInAnonymousTypeNotSupported)); 1185ThrowEnumTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.GetString(SR.EnumListInAnonymousTypeNotSupported)); 1192ThrowEnumTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.GetString(SR.EnumRestrictionInvalid)); 1215ThrowEnumTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.GetString(SR.EnumOnlyEnumerationFacetsSupported)); 1217ThrowEnumTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.GetString(SR.EnumEnumerationFacetsMustHaveValue)); 1239ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.GetString(SR.SimpleTypeRestrictionDoesNotSpecifyBase)); 1259if (typeElement != null && typeElement.NamespaceURI == surrogateDataAnnotationName.Namespace && typeElement.LocalName == surrogateDataAnnotationName.Name) 1261object surrogateData = ImportSurrogateData(typeElement, surrogateDataAnnotationName.Name, surrogateDataAnnotationName.Namespace); 1361ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.GetString(SR.AbstractTypeNotSupported)); 1363ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.GetString(SR.MixedContentNotSupported)); 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)); 1381ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.GetString(SR.AnyAttributeNotSupported)); 1399if (attribute.RefName.IsEmpty || attribute.RefName.Namespace != Globals.SerializationNamespace || attribute.Use == XmlSchemaUse.Required) 1400ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.GetString(SR.TypeShouldNotContainAttributes, Globals.SerializationNamespace)); 1412ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.GetString(SR.CannotHaveDuplicateAttributeNames, refName.Name)); 1430ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.GetString(SR.InvalidAnnotationExpectingText, xmlElement.LocalName, xmlElement.NamespaceURI, child.LocalName, child.NamespaceURI)); 1449if (annotationElement != null && annotationElement.LocalName == annotationQualifiedName.Name && annotationElement.NamespaceURI == annotationQualifiedName.Namespace)
System\Runtime\Serialization\XmlDataContract.cs (5)
210this.Namespace = dictionary.Add(StableName.Namespace); 217topLevelElementNamespace = (this.StableName.Namespace == Globals.SchemaNamespace) ? DictionaryGlobals.EmptyString : Namespace; 331this.TopLevelElementNamespace = dictionary.Add(elementName.Namespace); 421return (StableName.Name == dataContract.StableName.Name && StableName.Namespace == dataContract.StableName.Namespace);
System\Runtime\Serialization\XmlFormatReaderGenerator.cs (4)
425ReadValue(memberType, dataMember.Name, classContract.StableName.Namespace); 429value = ReadValue(memberType, dataMember.Name, classContract.StableName.Namespace); 628string itemNs = collectionContract.StableName.Namespace; 741string itemNs = collectionContract.StableName.Namespace;
System\Runtime\Serialization\XmlFormatWriterGenerator.cs (2)
791string ns = classContract.StableName.Namespace; 795if (ns == currentContract.StableName.Namespace)
System\Runtime\Serialization\XmlObjectSerializerContext.cs (4)
272DataContract knownContract = ResolveDataContractFromKnownTypes(dataContract.StableName.Name, dataContract.StableName.Namespace, null /*memberTypeContract*/, declaredType); 278DataContract dataContract = PrimitiveDataContract.GetPrimitiveDataContract(typeName.Name, typeName.Namespace); 294TD.DCResolverResolve(typeName.Name + ":" + typeName.Namespace); 297Type dataContractType = DataContractResolver.ResolveName(typeName.Name, typeName.Namespace, declaredType, KnownTypeResolver);
System\Runtime\Serialization\XmlObjectSerializerReadContext.cs (1)
216values["ISerializableType"] = dataContract.StableName.Namespace + ":" + dataContract.StableName.Name;
System\Runtime\Serialization\XmlObjectSerializerWriteContext.cs (1)
263throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(SR.GetString(SR.DcTypeNotFoundOnSerialize, DataContract.GetClrTypeFullName(dataContract.UnderlyingType), dataContract.StableName.Name, dataContract.StableName.Namespace)));
System\Runtime\Serialization\XmlSerializableServices.cs (1)
77SchemaExporter.AddDefaultXmlType(schemas, typeQName.Name, typeQName.Namespace);
System\Runtime\Serialization\XmlWriterDelegator.cs (2)
658WriteXmlnsAttribute(value.Namespace); 659WriteQualifiedName(value.Name, value.Namespace);
System\Runtime\Serialization\XsdDataContractImporter.cs (4)
194DataContract dataContract = DataContract.GetBuiltInDataContract(typeName.Name, typeName.Namespace); 199throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.TypeHasNotBeenImported, typeName.Name, typeName.Namespace))); 209DataContract dataContract = DataContract.GetBuiltInDataContract(typeName.Name, typeName.Namespace); 214throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.TypeHasNotBeenImported, typeName.Name, typeName.Namespace)));
System.ServiceModel (86)
System\ServiceModel\Channels\AddressHeader.cs (1)
256this.ns = rootName.Namespace;
System\ServiceModel\Channels\UnrecognizedAssertionsBindingElement.cs (1)
113return new UnrecognizedAssertionsBindingElement(new XmlQualifiedName(wsdlBinding.Name, wsdlBinding.Namespace), null);
System\ServiceModel\ComIntegration\MexServiceChannelBuilder.cs (1)
486if (wsdl.TargetNamespace == portTypeQName.Namespace)
System\ServiceModel\Configuration\UnrecognizedPolicyAssertionElement.cs (1)
65WriteComment(SR.GetString(SR.UnrecognizedBindingAssertions1, this.wsdlBinding.Namespace), indent, writer, settings);
System\ServiceModel\Description\MessageContractExporter.cs (6)
167XmlSchema schema = SchemaHelper.GetSchema(DataContractSerializerMessageContractImporter.GenericMessageTypeName.Namespace, schemas); 193XmlSchema schema = SchemaHelper.GetSchema(DataContractSerializerMessageContractImporter.StreamBodyTypeName.Namespace, schemas); 238ExportGlobalElement(elementName.Name, elementName.Namespace, true/*isNillable*/, typeName, xsdType, this.exporter.GeneratedXmlSchemas); 299EnsureXsdImport(IsNullOrEmpty(elementName) ? typeName.Namespace : elementName.Namespace, message.ServiceDescription); 385SchemaHelper.AddImportToSchema(element.SchemaTypeName.Namespace, schema);
System\ServiceModel\Description\MessageContractImporter.cs (17)
604faultDescription.Namespace = detailElementQname.Namespace; 698description.Body.WrapperNamespace = part.Element.Namespace; 702return CheckAndAddPart(element.ElementSchemaType.QualifiedName, DataContractSerializerMessageContractImporter.StreamBodyTypeName, element.RefName.Name, GetLocalElementNamespace(element.RefName.Namespace, element, elementFormDefault), typeof(Stream), description, isReply); 716ns = part.Element.Namespace; 738messageDescription.Body.WrapperNamespace = elementName.Namespace; 805foreach (XmlSchema schema in GetSchema(schemaSet, elementName.Namespace)) 815throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.SFxSchemaDoesNotContainElement, elementName.Name, elementName.Namespace))); 821if (typeName.Namespace == XmlSchema.Namespace) 830if (StockSchemas.IsKnownSchema(typeName.Namespace)) 834foreach (XmlSchema schema in GetSchema(schemaSet, typeName.Namespace)) 844throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.SFxSchemaDoesNotContainType, typeName.Name, typeName.Namespace))); 867xsdNamespaces.Add(pair.Name, pair.Namespace); 1260ns = elementName.Namespace; 1271if (schemaTypeName.Namespace == XmlSchema.Namespace) 1275ns = schemaTypeName.Namespace; 1501return ImportParameterElement(FindSchemaElement(this.schemaSet, elementName), elementName.Namespace, isHeader, isMultiple); 2037string memberNs = elementName.Namespace;
System\ServiceModel\Description\MetadataResolver.cs (1)
295throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SR.GetString(SR.SFxMetadataResolverKnownContractsUniqueQNames, qname.Name, qname.Namespace));
System\ServiceModel\Description\MetadataSet.cs (3)
462if (!processOuterElement || (xsiType == null || ((object)((System.Xml.XmlQualifiedName)xsiType).Name == (object)id3_MetadataSet && (object)((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id2_Item))) 524if (xsiType == null || ((object)((System.Xml.XmlQualifiedName)xsiType).Name == (object)id4_MetadataSection && (object)((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id2_Item)) 620if (xsiType == null || ((object)((System.Xml.XmlQualifiedName)xsiType).Name == (object)id14_MetadataLocation && (object)((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id2_Item))
System\ServiceModel\Description\SchemaHelper.cs (4)
33AddImportToSchema(element.SchemaTypeName.Namespace, schema); 182if (typeName.Namespace == XmlSchema.Namespace) 184if (typeName.Namespace == dataContractSerializerNamespace) 186if (typeName.Namespace == xmlSerializerNamespace)
System\ServiceModel\Description\ServiceEndpointCollection.cs (5)
46if (endpoint != null && endpoint.Contract.Name == contractName.Name && endpoint.Contract.Namespace == contractName.Namespace) 70endpoint.Binding.Namespace == bindingName.Namespace) 93endpoint.Contract.Namespace == contractName.Namespace && 95endpoint.Binding.Namespace == bindingName.Namespace) 153if (endpoint != null && endpoint.Contract.Name == contractName.Name && endpoint.Contract.Namespace == contractName.Namespace)
System\ServiceModel\Description\ServiceReflector.cs (3)
109if (String.IsNullOrEmpty(contractName.Namespace)) 115actionBuilder.Append(contractName.Namespace); 116if (!contractName.Namespace.EndsWith("/", StringComparison.Ordinal))
System\ServiceModel\Description\TypeLoader.cs (3)
184ContractDescription contract = new ContractDescription(contractName.Name, contractName.Namespace); 199ContractDescription contract = new ContractDescription(contractName.Name, contractName.Namespace); 694ContractDescription contractDescription = new ContractDescription(contractName.Name, contractName.Namespace);
System\ServiceModel\Description\WsdlContractConversionContext.cs (1)
155if (wsdlBinding.Type.Name == WsdlPortType.Name && wsdlBinding.Type.Namespace == WsdlPortType.ServiceDescription.TargetNamespace)
System\ServiceModel\Description\WsdlExporter.cs (7)
258WsdlNS.ServiceDescription wsdl = GetOrCreateWsdl(wsdlPortTypeQName.Namespace); 319bindingWsdl = GetOrCreateWsdl(wsdlBindingQName.Namespace); 331WsdlExporter.EnsureWsdlContainsImport(bindingWsdl, wsdlPortTypeQName.Namespace); 337bindingWsdl = wsdlDocuments[wsdlBindingQName.Namespace]; 361WsdlExporter.EnsureWsdlContainsImport(wsdlService.ServiceDescription, wsdlBindingQName.Namespace); 506WsdlNS.ServiceDescription wsdl = GetOrCreateWsdl(wsdlServiceQName.Namespace); 1023if (prefixDef.Namespace == ns)
System\ServiceModel\Description\WsdlHelper.cs (5)
240if (binding.Type.Namespace != targetNamespace) 251if (messageInput != null && messageInput.Message.Namespace != targetNamespace) 257if (messageOutput != null && messageOutput.Message.Namespace != targetNamespace) 264if (fault.Message.Namespace != targetNamespace) 281else if (port.Binding.Namespace != targetNamespace)
System\ServiceModel\Description\WsdlImporter.cs (9)
536contractDescription = new ContractDescription(contractQName.Name, contractQName.Namespace); 559binding.Namespace = bindingQName.Namespace; 776string errorMsg = SR.GetString(SR.RequiredWSDLExtensionIgnored, qName.Name, qName.Namespace); 783string errorMsg = SR.GetString(SR.OptionalWSDLExtensionIgnored, qName.Name, qName.Namespace, xPath); 1482bindingNamespace.Value = wsdlBindingQName.Namespace; 1518&& wsdlBinding.Type.Namespace == wsdlPortType.ServiceDescription.TargetNamespace) 1529&& wsdlBinding.Type.Namespace == qName.Namespace) 1538if (wsdlPort.Binding.Name == binding.Name && wsdlPort.Binding.Namespace == binding.ServiceDescription.TargetNamespace)
System\ServiceModel\Dispatcher\UniqueContractNameValidationBehavior.cs (1)
38SR.GetString(SR.SFxMultipleContractsWithSameName, qname.Name, qname.Namespace)));
System\ServiceModel\Dispatcher\XmlSerializerObjectSerializer.cs (1)
34Initialize(type, qualifiedName.Name, qualifiedName.Namespace, xmlSerializer);
System\ServiceModel\EndpointAddress10.cs (1)
102schemaToAdd.Namespaces.Add(prefixNsPair.Name, prefixNsPair.Namespace);
System\ServiceModel\EndpointAddressAugust2004.cs (1)
101schemaToAdd.Namespaces.Add(prefixNsPair.Name, prefixNsPair.Namespace);
System\ServiceModel\Security\ChannelProtectionRequirements.cs (1)
174if (!result.IsHeaderIncluded(headerType.Name, headerType.Namespace))
System\ServiceModel\Security\IssuedTokensHeader.cs (1)
230if (issuanceAppliesToName == expectedAppliesToQName.Name && issuanceAppliesToNs == expectedAppliesToQName.Namespace)
System\ServiceModel\Security\MessagePartSpecification.cs (4)
136if (qname.Name == qname1.Name && qname.Namespace == qname1.Namespace) 206if (qname.Namespace == ns) 213if (qname.Name == name && qname.Namespace == ns)
System\ServiceModel\Security\ScopedMessagePartSpecification.cs (1)
170if (!target.channelParts.IsHeaderIncluded(headerType.Name, headerType.Namespace))
System\ServiceModel\Security\WSSecurityPolicy.cs (1)
391result.SetAttribute(NamespaceName, header.Namespace);
System\ServiceModel\Security\WSTrustServiceContract.cs (1)
1945if (StringComparer.Ordinal.Equals(namespaces[i].Namespace, ns))
System\ServiceModel\Syndication\Atom10FeedFormatter.cs (1)
634if (!FeedUtils.IsXmlns(attr.Name, attr.Namespace))
System\ServiceModel\Syndication\ExtensibleSyndicationObject.cs (1)
115writer.WriteAttributeString(qname.Name, qname.Namespace, value);
System\ServiceModel\Syndication\SyndicationContent.cs (2)
105if (key.Name == Atom10Constants.TypeTag && key.Namespace == string.Empty) 112writer.WriteAttributeString(key.Name, key.Namespace, attrValue);
System\ServiceModel\Syndication\SyndicationElementExtension.cs (1)
288ns = qName.Namespace;
System.ServiceModel.Activities (2)
System\ServiceModel\Activities\ContractValidationHelper.cs (1)
306partNamespace = xmlQualifiedName.Namespace;
System\ServiceModel\Activities\MessageBuilder.cs (1)
154partNamespace = xmlQualifiedName.Namespace;
System.ServiceModel.Discovery (5)
System\ServiceModel\Discovery\EndpointDiscoveryMetadata.cs (1)
331(string.CompareOrdinal(endpoint.Contract.Namespace, MetadataContractName.Namespace) == 0));
System\ServiceModel\Discovery\FindCriteria.cs (1)
427findCriteriaClone.ContractTypeNames.Add(new XmlQualifiedName(contractTypeName.Name, contractTypeName.Namespace));
System\ServiceModel\Discovery\SerializationUtility.cs (3)
124if (qname.Namespace.Length == 0) 136prefix = writer.LookupPrefix(qname.Namespace); 140writer.WriteAttributeString("xmlns", prefix, null, qname.Namespace);
System.ServiceModel.Web (12)
System\ServiceModel\Dispatcher\HelpExampleGenerator.cs (10)
198context.writer.WriteAttributeString(attribute.QualifiedName.Name, attribute.QualifiedName.Namespace, content); 236context.writer.WriteStartElement(element.QualifiedName.Name, element.QualifiedName.Namespace); 240if (contentElement.QualifiedName.Namespace != element.QualifiedName.Namespace && !String.IsNullOrEmpty(contentElement.QualifiedName.Namespace)) 242string prefix = context.writer.LookupPrefix(contentElement.QualifiedName.Namespace); 246context.writer.WriteAttributeString(XmlNamespacePrefix, prefix, null, contentElement.QualifiedName.Namespace); 297context.writer.WriteStartElement(element.QualifiedName.Name, element.QualifiedName.Namespace); 320if (simpleType.QualifiedName.Namespace != System.Runtime.Serialization.Globals.SerializationNamespace 321&& simpleType.QualifiedName.Namespace != XmlSchemaNamespace
System\ServiceModel\Dispatcher\HelpPage.cs (2)
429if (name.Namespace != "http://schemas.microsoft.com/2003/10/Serialization/") 431foreach (XmlSchema schema in this.SchemaSet.Schemas(name.Namespace))
System.Web.Extensions (21)
Compilation\WCFModel\WsdlInspector.cs (2)
399int namespaceResult = String.Compare(x.Message.Namespace, y.Message.Namespace, StringComparison.Ordinal);
Compilation\XmlSerializer\DataSvcMapFileSerializer.cs (5)
225if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id3_DataSvcMapFileImpl && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id2_Item)) { 420if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id13_Parameter && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id2_Item)) { 470if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id11_ExtensionFile && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id2_Item)) { 520if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id9_MetadataFile && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id2_Item)) { 606if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id7_MetadataSource && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id2_Item)) {
Compilation\XmlSerializer\SvcMapFileSerializer.cs (10)
412if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id3_SvcMapFileImpl && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id2_Item)) { 577if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id12_ExtensionFile && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id2_Item)) { 627if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id10_MetadataFile && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id2_Item)) { 713if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id8_MetadataSource && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id2_Item)) { 767if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id6_ClientOptions && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id2_Item)) { 1063if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id45_ContractMapping && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id2_Item)) { 1117if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id48_ReferencedType && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id2_Item)) { 1163if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id40_ReferencedAssembly && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id2_Item)) { 1218if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id50_ReferencedCollectionType && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id2_Item)) { 1277if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id31_NamespaceMapping && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id2_Item)) {
Script\Services\WebServiceTypeData.cs (4)
177&& restriction.BaseTypeName.Namespace == SchemaNamespace 245typeData = new WebServiceEnumData(XmlConvert.DecodeName(qname.Name), XmlConvert.DecodeName(qname.Namespace), Enum.GetNames(type), Enum.GetValues(type), isUlong); 248typeData = new WebServiceTypeData(XmlConvert.DecodeName(qname.Name), XmlConvert.DecodeName(qname.Namespace)); 281if (annotationElement != null && annotationElement.LocalName == annotationQualifiedName.Name && annotationElement.NamespaceURI == annotationQualifiedName.Namespace) {
System.Web.Services (138)
System\Web\Services\Description\HttpProtocolReflector.cs (1)
94import.Namespace = restriction.BaseTypeName.Namespace;
System\Web\Services\Description\SchemaCompiler.cs (3)
102item = Res.GetString(Res.XmlSchemaElementReference, e.RefName.ToString(), parentName.Name, parentName.Namespace); 119return Res.GetString(Res.XmlSchemaAttributeReference, a.RefName.ToString(), parentName.Name, parentName.Namespace); 129item = Res.GetString(Res.XmlSchemaContentDef, parentName.Name, parentName.Namespace, details);
System\Web\Services\Description\ServiceDescriptions.cs (3)
105return new Exception(Res.GetString(Res.WebDescriptionMissingItem, type, name.Name, name.Namespace)); 169ServiceDescription serviceDescription = this[name.Namespace]; 171throw new ArgumentException(Res.GetString(Res.WebDescriptionMissing, name.ToString(), name.Namespace), "name");
System\Web\Services\Description\ServiceDescriptionSerializer.cs (88)
4136if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id3_ServiceDescription && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id2_Item)) { 4228if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id14_Service && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id2_Item)) { 4296if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id16_Port && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id2_Item)) { 4373if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id21_Soap12AddressBinding && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id20_Item)) { 4423if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id24_SoapAddressBinding && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id19_Item)) { 4473if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id25_HttpAddressBinding && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id18_Item)) { 4523if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id26_Binding && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id2_Item)) { 4604if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id29_OperationBinding && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id2_Item)) { 4689if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id33_FaultBinding && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id2_Item)) { 4759if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id34_Soap12FaultBinding && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id20_Item)) { 4829if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id38_SoapFaultBinding && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id19_Item)) { 4899if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id39_OutputBinding && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id2_Item)) { 4987if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id48_Soap12HeaderBinding && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id20_Item)) { 5059if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id51_SoapHeaderFaultBinding && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id20_Item)) { 5125if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id52_Soap12BodyBinding && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id20_Item)) { 5187if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id54_SoapHeaderBinding && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id19_Item)) { 5259if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id51_SoapHeaderFaultBinding && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id19_Item)) { 5325if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id55_SoapBodyBinding && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id19_Item)) { 5387if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id56_MimeTextBinding && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id45_Item)) { 5439if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id58_MimeTextMatch && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id45_Item)) { 5515if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id64_MimeMultipartRelatedBinding && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id41_Item)) { 5567if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id65_MimePart && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id41_Item)) { 5631if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id66_MimeXmlBinding && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id41_Item)) { 5681if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id67_MimeContentBinding && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id41_Item)) { 5735if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id68_InputBinding && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id2_Item)) { 5829if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id71_HttpUrlReplacementBinding && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id18_Item)) { 5875if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id72_HttpUrlEncodedBinding && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id18_Item)) { 5921if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id73_Soap12OperationBinding && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id20_Item)) { 5987if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id77_SoapOperationBinding && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id19_Item)) { 6049if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id78_HttpOperationBinding && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id18_Item)) { 6099if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id79_Soap12Binding && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id20_Item)) { 6153if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id81_SoapBinding && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id19_Item)) { 6207if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id82_HttpBinding && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id18_Item)) { 6257if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id84_PortType && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id2_Item)) { 6325if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id85_Operation && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id2_Item)) { 6404if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id87_OperationFault && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id2_Item)) { 6472if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id88_OperationOutput && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id2_Item)) { 6540if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id89_OperationInput && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id2_Item)) { 6608if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id90_Message && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id2_Item)) { 6676if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id91_MessagePart && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id2_Item)) { 6748if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id93_Types && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id2_Item)) { 6812if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id96_XmlSchema && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id95_Item)) { 6931if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id111_XmlSchemaAttributeGroup && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id95_Item)) { 7010if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id113_XmlSchemaAnyAttribute && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id95_Item)) { 7082if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id115_XmlSchemaAnnotation && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id95_Item)) { 7149if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id117_XmlSchemaAppInfo && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id95_Item)) { 7210if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id119_XmlSchemaDocumentation && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id95_Item)) { 7284if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id122_XmlSchemaAttributeGroupRef && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id95_Item)) { 7352if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id124_XmlSchemaAttribute && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id95_Item)) { 7448if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id128_XmlSchemaSimpleType && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id95_Item)) { 7532if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id133_XmlSchemaSimpleTypeUnion && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id95_Item)) { 7612if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id135_XmlSchemaSimpleTypeRestriction && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id95_Item)) { 7721if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id148_XmlSchemaMinLengthFacet && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id95_Item)) { 7793if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id150_XmlSchemaMinExclusiveFacet && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id95_Item)) { 7865if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id151_XmlSchemaWhiteSpaceFacet && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id95_Item)) { 7937if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id152_XmlSchemaMaxExclusiveFacet && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id95_Item)) { 8009if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id153_XmlSchemaMaxInclusiveFacet && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id95_Item)) { 8081if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id154_XmlSchemaEnumerationFacet && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id95_Item)) { 8153if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id155_XmlSchemaPatternFacet && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id95_Item)) { 8225if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id156_XmlSchemaTotalDigitsFacet && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id95_Item)) { 8297if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id157_XmlSchemaLengthFacet && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id95_Item)) { 8369if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id158_XmlSchemaMaxLengthFacet && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id95_Item)) { 8441if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id159_XmlSchemaMinInclusiveFacet && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id95_Item)) { 8513if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id160_XmlSchemaFractionDigitsFacet && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id95_Item)) { 8585if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id161_XmlSchemaSimpleTypeList && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id95_Item)) { 8697if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id163_XmlSchemaElement && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id95_Item)) { 8831if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id173_XmlSchemaKeyref && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id95_Item)) { 8911if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id177_XmlSchemaXPath && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id95_Item)) { 8979if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id179_XmlSchemaUnique && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id95_Item)) { 9055if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id180_XmlSchemaKey && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id95_Item)) { 9131if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id181_XmlSchemaComplexType && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id95_Item)) { 9250if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id188_XmlSchemaAll && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id95_Item)) { 9326if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id189_XmlSchemaChoice && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id95_Item)) { 9414if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id191_XmlSchemaGroupRef && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id95_Item)) { 9490if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id192_XmlSchemaSequence && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id95_Item)) { 9578if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id193_XmlSchemaAny && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id95_Item)) { 9658if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id194_XmlSchemaSimpleContent && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id95_Item)) { 9730if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id196_Item && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id95_Item)) { 9809if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id197_Item && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id95_Item)) { 9929if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id198_XmlSchemaComplexContent && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id95_Item)) { 10005if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id199_Item && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id95_Item)) { 10100if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id200_Item && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id95_Item)) { 10195if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id201_XmlSchemaGroup && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id95_Item)) { 10275if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id202_XmlSchemaNotation && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id95_Item)) { 10351if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id205_XmlSchemaRedefine && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id95_Item)) { 10431if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id207_XmlSchemaImport && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id95_Item)) { 10503if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id208_XmlSchemaInclude && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id95_Item)) { 10571if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id209_Import && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id2_Item)) {
System\Web\Services\Description\Soap12ProtocolReflector.cs (2)
62ServiceDescription sd = GetServiceDescription(msg.Message.Namespace); 159throw new InvalidOperationException(Res.GetString(Res.TheMethodsAndUseTheSameRequestElementAndSoapActionXmlns6, operation.Method.name, operation.DuplicateByRequestElement.Method.name, operation.Method.requestElementName.Name, operation.Method.requestElementName.Namespace, operation.DuplicateBySoapAction.Method.name, operation.Method.action));
System\Web\Services\Description\SoapProtocolImporter.cs (7)
565if (message == null) throw new InvalidOperationException(Res.GetString(Res.MissingMessage2, header.Message.Name, header.Message.Namespace)); 568if (part == null) throw new InvalidOperationException(Res.GetString(Res.MissingMessagePartForMessageFromNamespace3, part.Name, header.Message.Name, header.Message.Namespace)); 573if (part.Type.IsEmpty) throw new InvalidOperationException(Res.GetString(Res.WebDescriptionPartTypeRequired, part.Name, header.Message.Name, header.Message.Namespace)); 574if (!part.Element.IsEmpty) UnsupportedOperationBindingWarning(Res.GetString(Res.WebDescriptionPartElementWarning, part.Name, header.Message.Name, header.Message.Namespace)); 579if (part.Element.IsEmpty) throw new InvalidOperationException(Res.GetString(Res.WebDescriptionPartElementRequired, part.Name, header.Message.Name, header.Message.Namespace)); 580if (!part.Type.IsEmpty) UnsupportedOperationBindingWarning(Res.GetString(Res.WebDescriptionPartTypeWarning, part.Name, header.Message.Name, header.Message.Namespace)); 1040UnsupportedOperationBindingWarning(Res.GetString(Res.SpecifyingATypeForUseLiteralMessagesIsAny, parts[0].Type.Name, parts[0].Type.Namespace));
System\Web\Services\Description\WebReferenceOptions.cs (1)
280if (xsiType == null || ((object)((System.Xml.XmlQualifiedName)xsiType).Name == (object)id1_webReferenceOptions && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id2_Item)) {
System\Web\Services\Description\WebServicesInteroperability.cs (11)
112violations.Add("R2303", Res.GetString(Res.OperationFlowNotification, op.Name, binding.Type.Namespace, binding.Type.Namespace)); 114violations.Add("R2303", Res.GetString(Res.OperationFlowSolicitResponse, op.Name, binding.Type.Namespace, binding.Type.Namespace)); 118violations.Add("R2304", Res.GetString(Res.Operation, op.Name, binding.Type.Name, binding.Type.Namespace)); 132violations.Add("R2718", Res.GetString(Res.OperationMissingBinding, op.Name, binding.Type.Name, binding.Type.Namespace)); 150violations.Add("R2718", Res.GetString(Res.PortTypeOperationMissing, bindingOperation.Name, binding.Name, description.TargetNamespace, binding.Type.Name, binding.Type.Namespace)); 232violations.Add("R2718", Res.GetString(Res.PortTypeOperationMissing, bindingOperation.Name, binding.Name, description.TargetNamespace, binding.Type.Name, binding.Type.Namespace)); 338if (qname.Namespace == null || qname.Namespace.Length == 0) { 359AddSignature(wireSignatures, part.Element.Name, part.Element.Namespace, message, ns, violations);
System\Web\Services\Discovery\DiscoveryDocumentSerializer.cs (5)
167if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id3_DiscoveryDocument && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id2_Item)) { 224if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id11_SoapBinding && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id10_Item)) { 274if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id15_SchemaReference && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id8_Item)) { 324if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id18_ContractReference && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id6_Item)) { 374if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id20_DiscoveryDocumentReference && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id2_Item)) {
System\Web\Services\Protocols\Soap11ServerProtocol.cs (8)
82throw new SoapException(Res.GetString(Res.TheRequestElementXmlnsWasNotRecognized2, ((XmlQualifiedName) methodKey).Name, ((XmlQualifiedName) methodKey).Namespace), new XmlQualifiedName(Soap.Code.Client, Soap.Namespace)); 108if (code.Namespace != null && code.Namespace.Length > 0 && writer.LookupPrefix(code.Namespace) == null) 109writer.WriteAttributeString("xmlns", "q0", null, code.Namespace); 110writer.WriteQualifiedName(code.Name, code.Namespace); 146if (code.Namespace == Soap.Namespace) { 149else if (code.Namespace == Soap12.Namespace) {
System\Web\Services\Protocols\Soap12ServerProtocol.cs (7)
95throw new SoapException(Res.GetString(Res.TheRequestElementXmlnsWasNotRecognized2, requestElement.Name, requestElement.Namespace), Soap12FaultCodes.SenderFaultCode); 166if (code.Namespace != null && code.Namespace.Length > 0 && writer.LookupPrefix(code.Namespace) == null) 167writer.WriteAttributeString("xmlns", "q0", null, code.Namespace); 168writer.WriteQualifiedName(code.Name, code.Namespace); 181if (code.Namespace == Soap.Namespace) {
System\Web\Services\Protocols\SoapClientProtocol.cs (1)
205clientType.Binding.Namespace == soapBinding.Binding.Namespace) {
System\Web\Services\Protocols\SoapServerProtocol.cs (1)
188throw new SoapException(Res.GetString(Res.TheMethodsAndUseTheSameRequestElementXmlns4, serverMethod.methodInfo.Name, duplicateMethod.methodInfo.Name, soapMethod.requestElementName.Name, soapMethod.requestElementName.Namespace), new XmlQualifiedName(Soap.Code.Client, Soap.Namespace));
System.Workflow.ComponentModel (23)
AuthoringOM\Design\ActivityDesignerLayoutSerializers.cs (1)
30writer.WriteAttributeString("xmlns", prefix, null, xmlQualifiedName.Namespace);
AuthoringOM\Serializer\CompositeActivityMarkupSerializer.cs (4)
27writtenMappings.Add(xmlQualifiedName.Namespace, compositeActivity); 33if (!writtenMappings.ContainsKey(xmlQualifiedName.Namespace)) 35writer.WriteAttributeString("xmlns", prefix, null, xmlQualifiedName.Namespace); 36writtenMappings.Add(xmlQualifiedName.Namespace, containedActivity);
AuthoringOM\Serializer\ExtendedPropertyInfo.cs (4)
202&& qualifiedPropertyName.Namespace.Equals(xmlQualifiedName.Namespace, StringComparison.Ordinal)) 223&& qualifiedPropertyName.Namespace.Equals(xmlQualifiedName.Namespace, StringComparison.Ordinal))
AuthoringOM\Serializer\MarkupExtensionSerializer.cs (2)
44writer.WriteQualifiedName(qualifiedName.Name, qualifiedName.Namespace); 82writer.WriteQualifiedName(XmlConvert.EncodeName(typeQualifiedName.Name), typeQualifiedName.Namespace);
AuthoringOM\Serializer\WorkflowMarkupSerializationManager.cs (1)
180string xmlns = xmlQualifiedName.Namespace;
AuthoringOM\Serializer\WorkflowMarkupSerializer.cs (11)
228if (xmlQualifiedName.Namespace.Equals(StandardXomlKeys.Definitions_XmlNs, StringComparison.Ordinal) && 333if (xmlQualifiedName.Namespace.Equals(StandardXomlKeys.Definitions_XmlNs, StringComparison.Ordinal) && 1684string xmlns = xmlQualifiedName.Namespace; 1689return xmlQualifiedName.Namespace + "." + xmlQualifiedName.Name; 1723type = serializationManager.GetType(new XmlQualifiedName(typename, xmlQualifiedName.Namespace)); 2359xmlns = qualifiedName.Namespace; 2369xmlns = qualifiedName.Namespace; 2375xmlns = qualifiedName.Namespace; 2387xmlns = qualifiedName.Namespace; 3132if (xmlQualifiedName.Namespace.Equals(StandardXomlKeys.Definitions_XmlNs, StringComparison.Ordinal)) 3150if (xmlQualifiedName.Namespace.Equals(StandardXomlKeys.Definitions_XmlNs, StringComparison.Ordinal))
System.Xml (237)
System\Xml\Cache\XPathDocumentBuilder.cs (1)
287this.pageSibling[this.idxSibling].Prefix == this.idAttrName.Namespace) {
System\Xml\Core\XmlTextReaderImpl.cs (1)
8249string ns = nameTable.Add( attrDef.Name.Namespace );
System\Xml\Core\XmlValidatingReaderImpl.cs (1)
715if ( schemaTypeObj != null && schemaTypeObj.QualifiedName.Namespace == XmlReservedNs.NsXs ) {
System\Xml\Core\XmlWriterSettings.cs (1)
802writer.Write(qname.Namespace);
System\Xml\Dom\DocumentSchemaValidator.cs (2)
385attr = document.CreateDefaultAttribute(GetDefaultPrefix(attrQName.Namespace), attrQName.Name, attrQName.Namespace);
System\Xml\Dom\XmlDocument.cs (4)
552attrPrefix = attdef.Name.Namespace; 555attrNamespaceURI = attdef.Name.Namespace; 1407if ( ( schInfo.SchemaType == SchemaType.DTD && attdef.Name.Namespace == attrPrefix ) || 1408( schInfo.SchemaType != SchemaType.DTD && attdef.Name.Namespace == attrNamespaceURI ) ) {
System\Xml\Schema\AutoValidator.cs (1)
88else if (Ref.Equal(objectNs, SchemaNames.QnDtDt.Namespace) && Ref.Equal(objectName, SchemaNames.QnDtDt.Name)) {
System\Xml\Schema\BaseProcessor.cs (2)
71string ns = nameTable.Add(qname.Namespace); 89string ns = nameTable.Add(qname.Namespace);
System\Xml\Schema\ContentValidator.cs (1)
155lookup = wildcards[name.Namespace];
System\Xml\Schema\DtdParser.cs (3)
628elementDecl = new SchemaElementDecl(elementName, elementName.Namespace); 638attrDef = new SchemaAttDef(attrName, attrName.Namespace); 901elementDecl = new SchemaElementDecl( name, name.Namespace );
System\Xml\Schema\DtdParserAsync.cs (3)
273elementDecl = new SchemaElementDecl(elementName, elementName.Namespace); 283attrDef = new SchemaAttDef(attrName, attrName.Namespace); 546elementDecl = new SchemaElementDecl( name, name.Namespace );
System\Xml\Schema\DtdValidator.cs (1)
421context.Namespace = elementName.Namespace;
System\Xml\Schema\Inference\Infer.cs (7)
225if (elem.Name == xtr.LocalName && elem.QualifiedName.Namespace == xtr.NamespaceURI) 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) 1377if (schemaAttribute.RefName.Name == attributeName && schemaAttribute.RefName.Namespace == nsURI) { 1393if (xse.RefName.Name == elementName && xse.RefName.Namespace == nsURI) 1427if (null == FindAttributeRef(attributesInInstance, attr.RefName.Name, attr.RefName.Namespace)) {
System\Xml\Schema\NamespaceList.cs (1)
101return Allows(qname.Namespace);
System\Xml\Schema\Preprocessor.cs (5)
1420SendValidationEvent(Res.Sch_NoRestOrExtQName, complexType.QualifiedName.Name, complexType.QualifiedName.Namespace, complexType); 1463SendValidationEvent(Res.Sch_NoRestOrExtQName, complexType.QualifiedName.Name, complexType.QualifiedName.Namespace, complexType); 1722if (currentSchema.IsChameleon && value.Namespace.Length == 0) { 1725if(referenceNamespaces[value.Namespace] == null) { 1726SendValidationEvent(Res.Sch_UnrefNS, value.Namespace, xso, XmlSeverityType.Warning);
System\Xml\Schema\SchemaCollectionCompiler.cs (4)
217schemaInfo.TargetNamespaces[element.QualifiedName.Namespace] = true; 221schemaInfo.TargetNamespaces[attribute.QualifiedName.Namespace] = true; 225schemaInfo.TargetNamespaces[type.QualifiedName.Namespace] = true; 232schemaInfo.TargetNamespaces[notation.QualifiedName.Namespace] = true;
System\Xml\Schema\SchemaCollectionpreProcessor.cs (4)
1106SendValidationEvent(Res.Sch_NoRestOrExtQName, complexType.QualifiedName.Name, complexType.QualifiedName.Namespace, complexType); 1149SendValidationEvent(Res.Sch_NoRestOrExtQName, complexType.QualifiedName.Name, complexType.QualifiedName.Namespace, complexType); 1405if(referenceNamespaces[value.Namespace] == null) { 1406SendValidationEvent(Res.Sch_UnrefNS,value.Namespace,xso, XmlSeverityType.Warning);
System\Xml\Schema\SchemaInfo.cs (2)
180if (!ed.ContentValidator.IsOpen || qname.Namespace.Length == 0) { 183if (!attributeDecls.TryGetValue(qname, out attdef) && targetNamespaces.ContainsKey(qname.Namespace)) {
System\Xml\Schema\XdrBuilder.cs (3)
623if (gname.Namespace.Length == 0) { 1330string ns = qname.Namespace; 1343string ns = qname.Namespace;
System\Xml\Schema\XdrValidator.cs (3)
84if (SchemaNames.IsXDRRoot(elementName.Name, elementName.Namespace) && reader.Depth > 0) { 180Ref.Equal(objectNs, SchemaNames.QnDtDt.Namespace) && 543context.Namespace = elementName.Namespace;
System\Xml\Schema\XmlAtomicValue.cs (1)
138string ns = qname.Namespace;
System\Xml\Schema\XmlSchemaAny.cs (1)
109return namespaceList.Allows(qname.Namespace);
System\Xml\Schema\XmlSchemaAnyAttribute.cs (1)
73return namespaceList.Allows(qname.Namespace);
System\Xml\Schema\XmlSchemaAttribute.cs (1)
137if (attributeType.QualifiedName.Namespace == XmlReservedNs.NsXs) {
System\Xml\Schema\XmlSchemaElement.cs (1)
217if (elementType.QualifiedName.Namespace == XmlReservedNs.NsXs) {
System\Xml\Schema\XmlSchemaObjectTable.cs (1)
140if (localName == qname.Name && ns == qname.Namespace) {
System\Xml\Schema\XmlSchemaSet.cs (1)
1315if (qname.Namespace == XmlReservedNs.NsXml) {
System\Xml\Schema\XmlSchemaType.cs (1)
129if (baseSchemaType.QualifiedName.Namespace == XmlReservedNs.NsXs) {
System\Xml\Schema\XmlSchemaValidator.cs (16)
503&& attQName.Namespace.Length != 0 504&& compiledSchemaInfo.Contains(attQName.Namespace) 594AttributeIdentityConstraints(attQName.Name, attQName.Namespace, typedVal, attValue.ToString(), datatype); 900string attributeNS = nameTable.Add(attdef.Name.Namespace); 944AttributeIdentityConstraints(attdef.Name.Name, attdef.Name.Namespace, attdef.DefaultValueTyped, attdef.DefaultValueRaw, datatype); 1297context.Namespace = elementName.Namespace; 1421if (elementDeclXsi == null && xsiTypeName.Namespace == NsXs) { 1495if (Ref.Equal(attQName.Namespace, NsXml) && (validationFlags & XmlSchemaValidationFlags.AllowXmlAttributes) != 0) { //Need to check if this attribute is an xml attribute 2191if (currentQName.Namespace != nextParticle.GetQualifiedName().Namespace) { 2231EnumerateAny(builder, name.Namespace); 2234if (name.Namespace.Length != 0) { 2235builder.Append(Res.GetString(Res.Sch_ElementNameAndNamespace, name.Name, name.Namespace)); 2265if (name.Namespace.Length != 0) { 2266builder.Append(Res.GetString(Res.Sch_ElementNameAndNamespace, subBuilder.ToString(), name.Namespace)); 2297return BuildElementName(qname.Name, qname.Namespace);
System\Xml\Schema\XmlValueConverter.cs (7)
554if (name.Namespace.Length == 0) { 557else if (name.Namespace == XmlReservedNs.NsXs) { 560else if (name.Namespace == XmlReservedNs.NsXQueryDataType) { 564return "{" + name.Namespace + "}" + name.Name; 779return string.Concat("{", qname.Namespace, "}", qname.Name); 781prefix = nsResolver.LookupPrefix(qname.Namespace); 783throw new InvalidCastException(Res.GetString(Res.XmlConvert_TypeNoPrefix, qname.ToString(), qname.Namespace));
System\Xml\Schema\XsdValidator.cs (6)
156if (IsXSDRoot(elementName.Name, elementName.Namespace) && reader.Depth > 0) { 337if (!schemaInfo.ElementDeclsByType.TryGetValue(xsiType, out elementDeclXsi) && xsiType.Namespace == NsXs) { 424&& attQName.Namespace.Length != 0 425&& schemaInfo.Contains(attQName.Namespace) 450AttributeIdentityConstraints(attdef.Name.Name, attdef.Name.Namespace, UnWrapUnion(attdef.DefaultValueTyped), attdef.DefaultValueRaw, attdef); 658context.Namespace = elementName.Namespace;
System\Xml\Serialization\ImportContext.cs (3)
148Warnings.Add(Res.GetString(Res.XmlMismatchSchemaObjects, item.GetType().Name, qname.Name, qname.Namespace)); 363if (baseType == null && !baseName.IsEmpty && baseName.Namespace != XmlSchema.Namespace) 381if (el.SubstitutionGroup.Namespace != XmlSchema.Namespace) {
System\Xml\Serialization\Mappings.cs (8)
961this.Namespace = xsiType.Namespace; 1094if (e.Name == element.Name && e.QualifiedName.Namespace == elementNs) { 1163if (xsiType.Namespace != XmlSchema.Namespace) { 1164ArrayList srcSchemas = (ArrayList)schemas.Schemas(xsiType.Namespace); 1167throw new InvalidOperationException(Res.GetString(Res.XmlMissingSchema, xsiType.Namespace)); 1170throw new InvalidOperationException(Res.GetString(Res.XmlGetSchemaInclude, xsiType.Namespace, getSchemaMethod.DeclaringType.FullName, getSchemaMethod.Name)); 1174throw new InvalidOperationException(Res.GetString(Res.XmlMissingSchema, xsiType.Namespace)); 1178throw new InvalidOperationException(Res.GetString(Res.XmlGetSchemaTypeMissing, getSchemaMethod.DeclaringType.FullName, getSchemaMethod.Name, xsiType.Name, xsiType.Namespace));
System\Xml\Serialization\NameTable.cs (3)
38Add(qname.Name, qname.Namespace, value); 48return table[new NameKey(qname.Name, qname.Namespace)]; 51table[new NameKey(qname.Name, qname.Namespace)] = value;
System\Xml\Serialization\SchemaImporter.cs (2)
192if (name.Namespace == XmlSchema.Namespace) 195throw new InvalidOperationException(Res.GetString(error, name.Name, name.Namespace));
System\Xml\Serialization\SchemaObjectWriter.cs (6)
43int ns = String.Compare(qn1.Namespace, qn2.Namespace, StringComparison.Ordinal); 256if (o.QualifiedName != null && !o.QualifiedName.IsEmpty && o.QualifiedName.Namespace != null && o.QualifiedName.Namespace.Length != 0) { 822if (o.QualifiedName != null && !o.QualifiedName.IsEmpty && o.QualifiedName.Namespace != null && o.QualifiedName.Namespace.Length != 0) {
System\Xml\Serialization\SoapSchemaExporter.cs (3)
222attribute.Value = qname.Namespace + ":" + qname.Name + "[]"; 230if (qname.Namespace != XmlSchema.Namespace) 231AddSchemaImport(qname.Namespace, mapping.Namespace);
System\Xml\Serialization\SoapSchemaImporter.cs (26)
67throw new InvalidOperationException(Res.GetString(Res.XmlPrimitiveBaseType, name.Name, name.Namespace, baseType.FullName)); 71accessor.Namespace = name.Namespace; 162throw new InvalidOperationException(Res.GetString(Res.RefSyntaxNotSupportedForElements0, element.RefName.Name, element.RefName.Namespace)); 167throw new InvalidOperationException(Res.GetString(Res.XmlElementHasNoName, parentType.Name, parentType.Namespace)); 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)); 199throw new InvalidOperationException(Res.GetString(Res.XmlInvalidSubstitutionGroupUse, parentType.Name, parentType.Namespace)); 203throw new InvalidOperationException(Res.GetString(Res.XmlElementMissingType, parentType.Name, parentType.Namespace, element.Name)); 229if (name.Name == Soap.UrType && name.Namespace == XmlSchema.Namespace) 235mapping = ImportType((XmlSchemaComplexType)type, name.Namespace, excludeFromImport); 237mapping = ImportDataType((XmlSchemaSimpleType)type, name.Namespace, name.Name, false); 274throw new InvalidOperationException(Res.GetString(Res.XmlInvalidSchemaElementType, parentType.Name, parentType.Namespace, element.Name)); 316throw new InvalidOperationException(Res.GetString(Res.XmlInvalidAnyAttributeUse, type.Name, type.QualifiedName.Namespace)); 323throw new InvalidOperationException(Res.GetString(Res.XmlSoapInvalidAttributeUse, type.Name, type.QualifiedName.Namespace)); 327if (attr.Use != XmlSchemaUse.Prohibited) throw new InvalidOperationException(Res.GetString(Res.XmlSoapInvalidAttributeUse, type.Name, type.QualifiedName.Namespace)); 353throw new InvalidOperationException(Res.GetString(Res.XmlSoapInvalidChoice, parentType.Name, parentType.Namespace)); 362throw new InvalidOperationException(Res.GetString(Res.XmlSoapUnsupportedGroupRef, parentType.Name, parentType.Namespace)); 367throw new InvalidOperationException(Res.GetString(Res.XmlSoapUnsupportedGroupRepeat, parentType.Name, parentType.Namespace)); 371throw new InvalidOperationException(Res.GetString(Res.XmlSoapUnsupportedGroupNested, parentType.Name, parentType.Namespace)); 375throw new InvalidOperationException(Res.GetString(Res.XmlSoapUnsupportedGroupAny, parentType.Name, parentType.Namespace)); 416if (!(type.DerivedFrom.Name == Soap.Array && type.DerivedFrom.Namespace == Soap.Encoding)) return null; 430if (attribute != null && attribute.RefName.Name == Soap.ArrayType && attribute.RefName.Namespace == Soap.Encoding) { 447TypeDesc td = Scope.GetTypeDesc(typeName.Name, typeName.Namespace); 628TypeDesc typeDesc = Scope.GetTypeDesc(name.Name, name.Namespace); 635if (name.Namespace == XmlSchema.Namespace) 642if (name != null && name.Namespace == Soap.Encoding) {
System\Xml\Serialization\XmlReflectionImporter.cs (5)
486serializableMapping.Namespace = qname.Namespace; 519if (baseQname.Namespace == XmlSchema.Namespace) return; 521ArrayList srcSchemas = (ArrayList)schemas.Schemas(baseQname.Namespace); 524throw new InvalidOperationException(Res.GetString(Res.XmlMissingSchema, baseQname.Namespace)); 527throw new InvalidOperationException(Res.GetString(Res.XmlGetSchemaInclude, baseQname.Namespace, typeof(IXmlSerializable).Name, "GetSchema"));
System\Xml\Serialization\XmlSchemaExporter.cs (1)
448if (!serializableMapping.XsiType.IsEmpty && serializableMapping.XsiType.Namespace == schema.TargetNamespace)
System\Xml\Serialization\XmlSchemaImporter.cs (33)
104throw new InvalidOperationException(Res.GetString(Res.XmlBadBaseElement, name.Name, name.Namespace, baseType.FullName)); 138accessor.Namespace = typeName.Namespace; 157throw new InvalidOperationException(Res.GetString(Res.XmlBadBaseType, typeName.Name, typeName.Namespace, baseType.FullName)); 192mapping = ImportMembersType(type, typeName.Namespace, elementName); 200accessor.Namespace = typeName.Namespace; 278accessor = ImportElement(element, string.Empty, desiredMappingType, baseType, name.Namespace, true); 302throw new InvalidOperationException(Res.GetString(Res.XmlElementHasNoName, parentType.Name, parentType.Namespace)); 385typeName = FindExtendedType(qname.Name, qname.Namespace, context, compileUnit, mainNamespace, out typeOwner); 405throw new InvalidOperationException(Res.GetString(Res.XmlImporterExtensionBadTypeName, typeOwner.GetType().FullName, qname.Name, qname.Namespace, typeName)); 416mapping.TypeDesc = mapping.TypeDesc.CreateMappedTypeDesc(new MappedTypeDesc(typeName, qname.Name, qname.Namespace, type, context, typeOwner, mainNamespace, compileUnit.ReferencedAssemblies)); 464if (name.Name == Soap.UrType && name.Namespace == XmlSchema.Namespace) 475mapping = ImportType((XmlSchemaComplexType)type, name.Namespace, name.Name, desiredMappingType, baseType, flags); 478mapping = ImportDataType((XmlSchemaSimpleType)type, name.Namespace, name.Name, baseType, flags, false); 482if (addref && name.Namespace != XmlSchema.Namespace) 568throw new InvalidOperationException(Res.GetString(Res.XmlTypeUsedTwice, type.QualifiedName.Name, type.QualifiedName.Namespace)); 677ImportAttributeGroupMembers(FindAttributeGroup(groupName), identifier, members, membersScope, groupName.Namespace); 893if (GatherGroupChoices(FindGroup(refGroup.RefName), choiceElements, identifier, refGroup.RefName.Namespace, ref needExplicitOrder, allowDuplicates)) { 926AddScopeElement(choiceElements, ImportElement(elements[j], identifier, typeof(TypeMapping), null, elements[j].QualifiedName.Namespace, true), ref duplicateElements, allowDuplicates); 930AddScopeElement(choiceElements, ImportElement(element, identifier, typeof(TypeMapping), null, element.QualifiedName.Namespace, false), ref duplicateElements, allowDuplicates); 975ImportGroupMembers(FindGroup(refGroup.RefName).Particle, identifier, members, membersScope, elementsScope, refGroup.RefName.Namespace, groupRepeats | refGroup.IsMultipleOccurrence, ref mixed, ref needExplicitOrder, allowDuplicates, allowUnboundedElements); 1021equivalentElement.SubstitutionGroup.Namespace == schema.TargetNamespace && 1489if (attribute.RefName.Namespace == XmlReservedNs.NsXml) 1492return ImportAttribute(FindAttribute(attribute.RefName), identifier, attribute.RefName.Namespace, defaultValueProvider); 1560mapping = ImportDataType(FindDataType(restriction.BaseTypeName, flags), restriction.BaseTypeName.Namespace, identifier, null, flags, false); 1561if (restriction.BaseTypeName.Namespace != XmlSchema.Namespace) 1744if (qname.Namespace != XmlSchema.Namespace) 1754TypeDesc typeDesc = Scope.GetTypeDesc(name.Name, name.Namespace, flags); 1761if (name.Namespace == XmlSchema.Namespace) 1764if (name.Name == Soap.Array && name.Namespace == Soap.Encoding) { 1813return element.QualifiedName.Namespace == null || element.QualifiedName.Namespace.Length == 0 ? XmlSchemaForm.Unqualified : XmlSchemaForm.Qualified; 1870return attribute.QualifiedName.Namespace == null || attribute.QualifiedName.Namespace.Length == 0 ? XmlSchemaForm.Unqualified : XmlSchemaForm.Qualified;
System\Xml\Serialization\XmlSchemas.cs (4)
283IList values = (IList)SchemaSet.Schemas(name.Namespace); 520item = Res.GetString(Res.XmlSchemaElementReference, e.RefName.ToString(), parentName.Name, parentName.Namespace); 537return Res.GetString(Res.XmlSchemaAttributeReference, a.RefName.ToString(), parentName.Name, parentName.Namespace); 547item = Res.GetString(Res.XmlSchemaContentDef, parentName.Name, parentName.Namespace, null);
System\Xml\Serialization\XmlSerializationReader.cs (32)
291if ((object)typeName.Namespace == (object)schemaNsID || (object)typeName.Namespace == (object)soapNsID || (object)typeName.Namespace == (object)soap12NsID) { 358else if ((object) typeName.Namespace == (object) schemaNs2000ID || (object) typeName.Namespace == (object) schemaNs1999ID) { 421else if ((object) typeName.Namespace == (object) schemaNonXsdTypesNsID) { 523if (!IsPrimitiveNamespace(type.Namespace) || (object)type.Name == (object)urTypeID) 526if ((object)type.Namespace == (object)schemaNsID || (object)type.Namespace == (object)soapNsID || (object)type.Namespace == (object)soap12NsID) { 591else if ((object) type.Name == (object)base64ID && ((object)type.Namespace == (object)soapNsID || (object)type.Namespace == (object)soap12NsID)) 596else if ((object) type.Namespace == (object) schemaNs2000ID || (object) type.Namespace == (object) schemaNs1999ID) { 661else if ((object) type.Namespace == (object) schemaNonXsdTypesNsID) { 680if (!IsPrimitiveNamespace(type.Namespace) || (object)type.Name == (object)urTypeID) { 684if ((object)type.Namespace == (object)schemaNsID || (object)type.Namespace == (object)soapNsID || (object)type.Namespace == (object)soap12NsID) { 749else if ((object) type.Name == (object)base64ID && ((object)type.Namespace == (object)soapNsID || (object)type.Namespace == (object)soap12NsID)) 754else if ((object) type.Namespace == (object) schemaNonXsdTypesNsID) { 936if (qname.Namespace != ns) throw new InvalidOperationException(Res.GetString(Res.XmlInvalidArrayTypeNamespace, qname.Namespace, ns, CurrentTag())); 1250return new InvalidOperationException(Res.GetString(Res.XmlUnknownType, type.Name, type.Namespace, CurrentTag())); 1598array.SetValue(ReadReferencedElement(qname.Name, qname.Namespace), arrayLength); 1626typens = qname.Namespace; 4429WriteQNameEqual("tser", sm.XsiType.Name, sm.XsiType.Namespace); 4481WriteQNameEqual("tser", derived.XsiType.Name, derived.XsiType.Namespace); 4504WriteQuotedCSharpString(derived.XsiType.Namespace); 4508WriteQuotedCSharpString(head.XsiType.Namespace); 4521WriteQuotedCSharpString(derived.XsiType.Namespace);
System\Xml\Serialization\XmlSerializationReaderILGen.cs (5)
3244WriteQNameEqual("tser", sm.XsiType.Name, sm.XsiType.Namespace); 3309WriteQNameEqual("tser", derived.XsiType.Name, derived.XsiType.Namespace); 3349ilg.Ldstr(derived.XsiType.Namespace); 3351ilg.Ldstr(head.XsiType.Namespace); 3368ilg.Ldstr(derived.XsiType.Namespace);
System\Xml\Serialization\XmlSerializationWriter.cs (9)
388return GetQualifiedName(EscapeName ? XmlConvert.EncodeLocalName(xmlQualifiedName.Name) : xmlQualifiedName.Name, xmlQualifiedName.Namespace); 948WriteXsiType(xsiType.Name, xsiType.Namespace); 989WriteXsiType(xsiType.Name, xsiType.Namespace); 999WriteXsiType(xsiType.Name, xsiType.Namespace); 1034if (value.Namespace == null || value.Namespace.Length == 0) { 1041WriteXsiType(xsiType.Name, xsiType.Namespace); 1083typeNs = qualName.Namespace; 1105typeNs = qualName.Namespace;
System\Xml\Serialization\XmlSerializerNamespaces.cs (1)
47Add(qname.Name, qname.Namespace);
System\Xml\XmlQualifiedName.cs (9)
106get { return Name.Length == 0 && Namespace.Length == 0; } 114return Namespace.Length == 0 ? Name : string.Concat(Namespace, ":" , Name); 130return (Name == qname.Name && Namespace == qname.Namespace); 146return (a.Name == b.Name && a.Namespace == b.Namespace); 272int i = String.CompareOrdinal(a.Namespace, b.Namespace);
System.Xml.Linq (1)
System\Xml\Linq\XNodeValidator.cs (1)
234a = new XAttribute(XNamespace.Get(sa.QualifiedName.Namespace).GetName(sa.QualifiedName.Name), GetDefaultValue(sa));