130 references to SetAttribute
Microsoft.Build (4)
Construction\ProjectTaskElement.cs (1)
330XmlElement.SetAttribute(name, unevaluatedValue);
Evaluation\Preprocessor.cs (2)
251destinationDocument.DocumentElement.SetAttribute(XMakeAttributes.initialTargets, outerInitialTargets + innerInitialTargets); 263destinationDocument.DocumentElement.SetAttribute(XMakeAttributes.defaultTargets, innerDefaultTargets);
Xml\ProjectXmlUtilities.cs (1)
225element.SetAttribute(name, value);
Microsoft.Build.Tasks.Core (10)
AddToWin32Manifest.cs (1)
217winSettingsNode.SetAttribute(XMakeAttributes.xmlns, WindowsSettingsNamespace);
ManifestUtil\mansign2.cs (9)
432publisherIdentity.SetAttribute("name", signerCert.SubjectName.Name); 433publisherIdentity.SetAttribute("issuerKeyHash", issuerKeyHash); 548assemblyIdentity.SetAttribute("publicKeyToken", publicKeyToken); 705assemblyIdentityNode.SetAttribute(attribute.Name, attribute.Value); 710manifestInformationNode.SetAttribute("Hash", hash.Length == 0 ? "" : BytesToHexString(hash, 0, hash.Length)); 711manifestInformationNode.SetAttribute("Description", signer.Description ?? ""); 712manifestInformationNode.SetAttribute("Url", signer.DescriptionUrl ?? ""); 780xmlDigitalSignature.SetAttribute("Id", "AuthenticodeSignature"); 1042xmlDigitalSignature.SetAttribute("Id", "StrongNameSignature");
PresentationFramework (4)
MS\Internal\IO\Packaging\XamlFilter.cs (1)
797fixedPageTree.DocumentElement.SetAttribute(_xmlLangAttribute, _xamlReader.XmlLang);
System\Windows\Annotations\AnnotationHelper.cs (1)
1041colorsElement.SetAttribute(HighlightComponent.BackgroundAttributeName, converter.ConvertToInvariantString(color.Value));
System\Windows\Documents\FixedTextBuilder.cs (2)
1579newDumpNode.SetAttribute("id", node.ScopeId.ToString()); 1587_currentDumpNode.SetAttribute("Cookie", nodeLength.ToString());
ReachFramework (1)
PrintConfig\PrtTicket_Editor.cs (1)
222root.SetAttribute("xmlns:" + prefix, nsURI);
System.Data.Common (79)
System\Data\DataSet.cs (3)
1728topNode.SetAttribute(reader.Name, reader.GetAttribute(i)); 2159topNode.SetAttribute(reader.Name, reader.GetAttribute(i)); 2705topNode.SetAttribute(reader.Name, reader.GetAttribute(i));
System\Data\DataTable.cs (2)
5856topNode.SetAttribute(reader.Name, reader.GetAttribute(i)); 6125topNode.SetAttribute(reader.Name, reader.GetAttribute(i));
System\Data\SimpleType.cs (8)
235typeNode.SetAttribute(Keywords.NAME, _name); 252type.SetAttribute(Keywords.BASE, (prefix + ":" + _baseSimpleType.Name)); 256type.SetAttribute(Keywords.BASE, _baseSimpleType.Name); 261type.SetAttribute(Keywords.BASE, _baseSimpleType.Name); 266type.SetAttribute(Keywords.BASE, QualifiedName(_baseType!)); // has to be xs:SomePrimitiveType 271type.SetAttribute(Keywords.BASE, (_baseSimpleType != null) ? _baseSimpleType.Name : QualifiedName(_baseType!)); 278constraint.SetAttribute(Keywords.VALUE, _length.ToString(CultureInfo.InvariantCulture)); 284constraint.SetAttribute(Keywords.VALUE, _maxLength.ToString(CultureInfo.InvariantCulture));
System\Data\xmlsaver.cs (66)
389rootSchema.SetAttribute(Keywords.TARGETNAMESPACE, targetNamespace); 390rootSchema.SetAttribute(Keywords.XMLNS_MSTNS, targetNamespace); 394rootSchema.SetAttribute(Keywords.XMLNS, targetNamespace); 395rootSchema.SetAttribute(Keywords.XMLNS_XSD, Keywords.XSDNS); 396rootSchema.SetAttribute(Keywords.XMLNS_MSDATA, Keywords.MSDNS); 399rootSchema.SetAttribute(Keywords.XMLNS_MSPROP, Keywords.MSPROPNS); 404rootSchema.SetAttribute(Keywords.XSD_ATTRIBUTEFORMDEFAULT, Keywords.QUALIFIED); 405rootSchema.SetAttribute(Keywords.XSD_ELEMENTFORMDEFAULT, Keywords.QUALIFIED); 593rootSchema.SetAttribute(Keywords.XSDID, XmlConvert.EncodeLocalName(_ds.DataSetName)); 597rootSchema.SetAttribute(Keywords.XSDID, XmlConvert.EncodeLocalName("NewDataSet")); 631rootSchema.SetAttribute(Keywords.XMLNS_MSTNS, _ds.Namespace); 723el.SetAttribute(Keywords.MINOCCURS, top[i].MinOccurs.ToString(CultureInfo.InvariantCulture)); 727el.SetAttribute(Keywords.MAXOCCURS, Keywords.ZERO_OR_MORE); 731el.SetAttribute(Keywords.MAXOCCURS, top[i].MaxOccurs.ToString(CultureInfo.InvariantCulture)); 740node.SetAttribute(Keywords.REF, top[i].EncodedTableName); 742node.SetAttribute(Keywords.REF, ((string)_prefixes[top[i].Namespace]!) + ':' + top[i].EncodedTableName); 753node.SetAttribute(Keywords.REF, ((string)_prefixes[top[i].Namespace]!) + ':' + top[i].EncodedTableName); 819_import.SetAttribute(Keywords.XSD_NAMESPACE, ns); 822_import.SetAttribute(Keywords.XSD_SCHEMALOCATION, _fileName + "_" + _prefixes[ns] + ".xsd"); 886tNode.SetAttribute("xmlns:" + prefix, imp_ns); 888_import2.SetAttribute(Keywords.XSD_NAMESPACE, imp_ns); 893_import2.SetAttribute(Keywords.XSD_SCHEMALOCATION, _fileName + _fileExt); // for the dataset namespace don't append anything 895_import2.SetAttribute(Keywords.XSD_SCHEMALOCATION, _fileName + "_" + prefix + ".xsd"); 980rootSchema.SetAttribute(Keywords.XMLNS_MSTNS, _ds.Namespace); 994rootSchema.SetAttribute(Keywords.XMLNS_MSTNS, dt.Namespace); 1024_dsElement.SetAttribute(Keywords.NAME, XmlConvert.EncodeLocalName(dataSet.DataSetName)); 1047_dsElement.SetAttribute(Keywords.NAME, XmlConvert.EncodeLocalName("NewDataSet")); 1070compositor.SetAttribute(Keywords.MINOCCURS, Keywords.ZERO_DIGIT); 1071compositor.SetAttribute(Keywords.MAXOCCURS, Keywords.ZERO_OR_MORE); 1159root.SetAttribute(Keywords.NAME, XmlConvert.EncodeLocalName(rel.RelationName)); 1232_sRoot!.SetAttribute("xmlns:" + prefix, NamespaceURI); 1233schemaEl.SetAttribute("xmlns:" + prefix, NamespaceURI); 1282root.SetAttribute(keyword, (prefix + ":" + name)); // look at below,this loop assumes we would be here just oen time: Its Wrong 1284root.SetAttribute(keyword, name); 1287root.SetAttribute(keyword, name); 1319root.SetAttribute(keyword, XSDSchema.QualifiedName(col.XmlDataType)); 1339root.SetAttribute(keyword, XSDSchema.QualifiedName(typeName)); 1437root.SetAttribute(Keywords.NAME, col.EncodedColumnName); 1446root.SetAttribute(Keywords.FORM, Keywords.UNQUALIFIED); 1492root.SetAttribute(Keywords.DEFAULT, (bool)(col.DefaultValue) ? Keywords.TRUE : Keywords.FALSE); 1498root.SetAttribute(Keywords.DEFAULT, col.ConvertObjectToXml(col.DefaultValue)); 1517root.SetAttribute(Keywords.REF, _prefixes[col.Namespace] + ":" + col.EncodedColumnName); 1531root.SetAttribute(Keywords.USE, Keywords.REQUIRED); 1536root.SetAttribute(Keywords.USE, Keywords.PROHIBITED); 1540root.SetAttribute(Keywords.MINOCCURS, minOccurs.ToString(CultureInfo.InvariantCulture)); 1741root.SetAttribute(Keywords.NAME, table.EncodedTableName); 1777root.SetAttribute(Keywords.FORM, Keywords.UNQUALIFIED); 1830root.SetAttribute(Keywords.TYPE, XSDSchema.QualifiedName(_typeName)); 1851type.SetAttribute(Keywords.NAME, table.TypeName.Name); 1861root.SetAttribute(Keywords.TYPE, NewDiffgramGen.QualifiedName((string)_prefixes[table.TypeName.Namespace]!, table.TypeName.Name)); 1938NestedTable.SetAttribute(Keywords.REF, table.EncodedTableName); 1943NestedTable.SetAttribute(Keywords.REF, childTable.EncodedTableName); 1950NestedTable.SetAttribute(Keywords.MINOCCURS, "0"); 1951NestedTable.SetAttribute(Keywords.MAXOCCURS, Keywords.ZERO_OR_MORE); 1963NestedTable.SetAttribute(Keywords.REF, ((string)_prefixes[childTable.Namespace]!) + ':' + childTable.EncodedTableName); 2015constraint.SetAttribute(Keywords.NAME, XmlConvert.EncodeLocalName(unique.SchemaName)); 2024selector.SetAttribute(Keywords.XSD_XPATH, ".//" + xpathprefix + table.EncodedTableName); 2059field.SetAttribute(Keywords.XSD_XPATH, encodedName.ToString()); 2092constraint.SetAttribute(Keywords.NAME, XmlConvert.EncodeLocalName(foreign.SchemaName)); 2098selector.SetAttribute(Keywords.XSD_XPATH, ".//" + xpathprefix + foreign.RelatedTable.EncodedTableName); 2127field.SetAttribute(Keywords.XSD_XPATH, encodedName.ToString()); 2138constraint.SetAttribute(Keywords.NAME, XmlConvert.EncodeLocalName(foreign.SchemaName)); 2144constraint.SetAttribute(Keywords.REFER, XmlConvert.EncodeLocalName(foreign.SchemaName)); 2146constraint.SetAttribute(Keywords.REFER, XmlConvert.EncodeLocalName(_constraint.SchemaName)); 2170selector.SetAttribute(Keywords.XSD_XPATH, ".//" + xpathprefix + table.EncodedTableName); 2211field.SetAttribute(Keywords.XSD_XPATH, encodedName.ToString());
System.Security.Cryptography.Xml (32)
System\Security\Cryptography\Xml\CipherReference.cs (1)
60referenceElement.SetAttribute("URI", Uri);
System\Security\Cryptography\Xml\DataObject.cs (3)
121objectElement.SetAttribute("Id", _id); 123objectElement.SetAttribute("MimeType", _mimeType); 125objectElement.SetAttribute("Encoding", _encoding);
System\Security\Cryptography\Xml\EncryptedData.cs (4)
87encryptedDataElement.SetAttribute("Id", Id); 89encryptedDataElement.SetAttribute("Type", Type); 91encryptedDataElement.SetAttribute("MimeType", MimeType); 93encryptedDataElement.SetAttribute("Encoding", Encoding);
System\Security\Cryptography\Xml\EncryptedKey.cs (5)
162encryptedKeyElement.SetAttribute("Id", Id); 164encryptedKeyElement.SetAttribute("Type", Type); 166encryptedKeyElement.SetAttribute("MimeType", MimeType); 168encryptedKeyElement.SetAttribute("Encoding", Encoding); 170encryptedKeyElement.SetAttribute("Recipient", Recipient);
System\Security\Cryptography\Xml\EncryptedReference.cs (1)
96referenceElement.SetAttribute("URI", _uri);
System\Security\Cryptography\Xml\EncryptionMethod.cs (1)
71encryptionMethodElement.SetAttribute("Algorithm", _algorithm);
System\Security\Cryptography\Xml\KeyInfo.cs (1)
47keyInfoElement.SetAttribute("Id", _id);
System\Security\Cryptography\Xml\KeyInfoRetrievalMethod.cs (2)
59retrievalMethodElement.SetAttribute("URI", _uri); 61retrievalMethodElement.SetAttribute("Type", _type);
System\Security\Cryptography\Xml\Reference.cs (4)
173referenceElement.SetAttribute("Id", _id); 176referenceElement.SetAttribute("URI", _uri); 179referenceElement.SetAttribute("Type", _type); 190digestMethodElement.SetAttribute("Algorithm", _digestMethod);
System\Security\Cryptography\Xml\Signature.cs (2)
97signatureElement.SetAttribute("Id", _id); 112signatureValueElement.SetAttribute("Id", _signatureValueId);
System\Security\Cryptography\Xml\SignedInfo.cs (2)
169signedInfoElement.SetAttribute("Id", _id); 180signatureMethodElement.SetAttribute("Algorithm", _signatureMethod);
System\Security\Cryptography\Xml\Transform.cs (1)
132transformElement.SetAttribute("Algorithm", Algorithm);
System\Security\Cryptography\Xml\XmlDecryptionTransform.cs (2)
127element.SetAttribute("Algorithm", Algorithm); 131exceptUriElement.SetAttribute("URI", uri);
System\Security\Cryptography\Xml\XmlDsigExcC14NTransform.cs (2)
101element.SetAttribute("Algorithm", Algorithm); 103prefixListElement.SetAttribute("PrefixList", InclusiveNamespacesPrefixList);
System\Security\Cryptography\Xml\XmlDsigXPathTransform.cs (1)
107element.SetAttribute("xmlns:" + prefix, _nsm.LookupNamespace(prefix));