163 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.Conversion.Core (1)
ProjectFileConverter.cs (1)
2859referenceElement.SetAttribute(VSProjectAttributes.project, referencedProjectGuid);
Microsoft.Build.Engine (24)
Engine\BuildTask.cs (8)
271this.taskElement.SetAttribute(XMakeAttributes.continueOnError, "true"); 276this.taskElement.SetAttribute(XMakeAttributes.continueOnError, "false"); 556taskElement.SetAttribute(parameterName, parameterValue); 603newOutputElement.SetAttribute(XMakeAttributes.taskParameter, taskParameter); 604newOutputElement.SetAttribute(XMakeAttributes.itemName, itemName); 608newOutputElement.SetAttribute(XMakeAttributes.condition, condition); 647newOutputElement.SetAttribute(XMakeAttributes.taskParameter, taskParameter); 648newOutputElement.SetAttribute(XMakeAttributes.propertyName, propertyName);
Engine\Import.cs (2)
113ImportElement.SetAttribute(XMakeAttributes.project, value); 182ImportElement.SetAttribute(XMakeAttributes.condition, value);
Engine\ImportCollection.cs (2)
298newImportElement.SetAttribute(XMakeAttributes.condition, condition); 300newImportElement.SetAttribute(XMakeAttributes.project, projectFile);
Engine\Project.cs (6)
568mainProjectElement.SetAttribute(XMakeAttributes.defaultTargets, value); 626mainProjectElement.SetAttribute(XMakeAttributes.initialTargets, value); 878ProjectElement.SetAttribute(XMakeAttributes.toolsVersion, value); 2990newUsingTaskElement.SetAttribute(XMakeAttributes.taskName, taskName); 2994newUsingTaskElement.SetAttribute(XMakeAttributes.assemblyFile, assembly); 2998newUsingTaskElement.SetAttribute(XMakeAttributes.assemblyName, assembly);
Engine\TargetCollection.cs (1)
311newTargetElement.SetAttribute(XMakeAttributes.name, targetName);
Properties\BuildPropertyGroup.cs (1)
225this.propertyGroupElement.SetAttribute(XMakeAttributes.condition, condition);
Solution\SolutionWrapperProject.cs (2)
606newTarget.TargetElement.SetAttribute("Outputs", string.Format(CultureInfo.InvariantCulture, "@({0})", targetOutputItemName)); 1646newTarget.TargetElement.SetAttribute("Outputs", string.Format(CultureInfo.InvariantCulture, "@({0})", targetOutputItemName));
Xml\BuildItemGroupChildXml.cs (1)
191element.SetAttribute(XMakeAttributes.include, value);
Xml\ProjectXmlUtilities.cs (1)
196element.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); 703assemblyIdentityNode.SetAttribute(attribute.Name, attribute.Value); 708manifestInformationNode.SetAttribute("Hash", hash.Length == 0 ? "" : BytesToHexString(hash, 0, hash.Length)); 709manifestInformationNode.SetAttribute("Description", signer.Description ?? ""); 710manifestInformationNode.SetAttribute("Url", signer.DescriptionUrl ?? ""); 778xmlDigitalSignature.SetAttribute("Id", "AuthenticodeSignature"); 1040xmlDigitalSignature.SetAttribute("Id", "StrongNameSignature");
Microsoft.Build.Tasks.UnitTests (7)
AssignProjectConfiguration_Tests.cs (7)
127element.SetAttribute("BuildProjectInSolution", "IAmReallyABadOne"); 167element.SetAttribute("BuildProjectInSolution", "true"); 190element.SetAttribute("BuildProjectInSolution", "false"); 210element.SetAttribute("BuildProjectInSolution", "false"); 234element.SetAttribute("BuildProjectInSolution", "false"); 244element.SetAttribute("BuildProjectInSolution", "false"); 254element.SetAttribute("BuildProjectInSolution", "false");
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)
1589newDumpNode.SetAttribute("id", node.ScopeId.ToString()); 1597_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)
1708topNode.SetAttribute(reader.Name, reader.GetAttribute(i)); 2121topNode.SetAttribute(reader.Name, reader.GetAttribute(i)); 2660topNode.SetAttribute(reader.Name, reader.GetAttribute(i));
System\Data\DataTable.cs (2)
5822topNode.SetAttribute(reader.Name, reader.GetAttribute(i)); 6090topNode.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); 592rootSchema.SetAttribute(Keywords.XSDID, XmlConvert.EncodeLocalName(_ds.DataSetName)); 596rootSchema.SetAttribute(Keywords.XSDID, XmlConvert.EncodeLocalName("NewDataSet")); 630rootSchema.SetAttribute(Keywords.XMLNS_MSTNS, _ds.Namespace); 722el.SetAttribute(Keywords.MINOCCURS, top[i].MinOccurs.ToString(CultureInfo.InvariantCulture)); 726el.SetAttribute(Keywords.MAXOCCURS, Keywords.ZERO_OR_MORE); 730el.SetAttribute(Keywords.MAXOCCURS, top[i].MaxOccurs.ToString(CultureInfo.InvariantCulture)); 739node.SetAttribute(Keywords.REF, top[i].EncodedTableName); 741node.SetAttribute(Keywords.REF, ((string)_prefixes[top[i].Namespace]!) + ':' + top[i].EncodedTableName); 752node.SetAttribute(Keywords.REF, ((string)_prefixes[top[i].Namespace]!) + ':' + top[i].EncodedTableName); 818_import.SetAttribute(Keywords.XSD_NAMESPACE, ns); 821_import.SetAttribute(Keywords.XSD_SCHEMALOCATION, _fileName + "_" + _prefixes[ns] + ".xsd"); 885tNode.SetAttribute("xmlns:" + prefix, imp_ns); 887_import2.SetAttribute(Keywords.XSD_NAMESPACE, imp_ns); 892_import2.SetAttribute(Keywords.XSD_SCHEMALOCATION, _fileName + _fileExt); // for the dataset namespace don't append anything 894_import2.SetAttribute(Keywords.XSD_SCHEMALOCATION, _fileName + "_" + prefix + ".xsd"); 978rootSchema.SetAttribute(Keywords.XMLNS_MSTNS, _ds.Namespace); 992rootSchema.SetAttribute(Keywords.XMLNS_MSTNS, dt.Namespace); 1022_dsElement.SetAttribute(Keywords.NAME, XmlConvert.EncodeLocalName(dataSet.DataSetName)); 1045_dsElement.SetAttribute(Keywords.NAME, XmlConvert.EncodeLocalName("NewDataSet")); 1068compositor.SetAttribute(Keywords.MINOCCURS, Keywords.ZERO_DIGIT); 1069compositor.SetAttribute(Keywords.MAXOCCURS, Keywords.ZERO_OR_MORE); 1152root.SetAttribute(Keywords.NAME, XmlConvert.EncodeLocalName(rel.RelationName)); 1225_sRoot!.SetAttribute("xmlns:" + prefix, NamespaceURI); 1226schemaEl.SetAttribute("xmlns:" + prefix, NamespaceURI); 1275root.SetAttribute(keyword, (prefix + ":" + name)); // look at below,this loop assumes we would be here just oen time: Its Wrong 1277root.SetAttribute(keyword, name); 1280root.SetAttribute(keyword, name); 1312root.SetAttribute(keyword, XSDSchema.QualifiedName(col.XmlDataType)); 1332root.SetAttribute(keyword, XSDSchema.QualifiedName(typeName)); 1429root.SetAttribute(Keywords.NAME, col.EncodedColumnName); 1438root.SetAttribute(Keywords.FORM, Keywords.UNQUALIFIED); 1484root.SetAttribute(Keywords.DEFAULT, (bool)(col.DefaultValue) ? Keywords.TRUE : Keywords.FALSE); 1490root.SetAttribute(Keywords.DEFAULT, col.ConvertObjectToXml(col.DefaultValue)); 1509root.SetAttribute(Keywords.REF, _prefixes[col.Namespace] + ":" + col.EncodedColumnName); 1523root.SetAttribute(Keywords.USE, Keywords.REQUIRED); 1528root.SetAttribute(Keywords.USE, Keywords.PROHIBITED); 1532root.SetAttribute(Keywords.MINOCCURS, minOccurs.ToString(CultureInfo.InvariantCulture)); 1731root.SetAttribute(Keywords.NAME, table.EncodedTableName); 1767root.SetAttribute(Keywords.FORM, Keywords.UNQUALIFIED); 1820root.SetAttribute(Keywords.TYPE, XSDSchema.QualifiedName(_typeName)); 1841type.SetAttribute(Keywords.NAME, table.TypeName.Name); 1851root.SetAttribute(Keywords.TYPE, NewDiffgramGen.QualifiedName((string)_prefixes[table.TypeName.Namespace]!, table.TypeName.Name)); 1928NestedTable.SetAttribute(Keywords.REF, table.EncodedTableName); 1933NestedTable.SetAttribute(Keywords.REF, childTable.EncodedTableName); 1940NestedTable.SetAttribute(Keywords.MINOCCURS, "0"); 1941NestedTable.SetAttribute(Keywords.MAXOCCURS, Keywords.ZERO_OR_MORE); 1953NestedTable.SetAttribute(Keywords.REF, ((string)_prefixes[childTable.Namespace]!) + ':' + childTable.EncodedTableName); 2005constraint.SetAttribute(Keywords.NAME, XmlConvert.EncodeLocalName(unique.SchemaName)); 2014selector.SetAttribute(Keywords.XSD_XPATH, ".//" + xpathprefix + table.EncodedTableName); 2049field.SetAttribute(Keywords.XSD_XPATH, encodedName.ToString()); 2082constraint.SetAttribute(Keywords.NAME, XmlConvert.EncodeLocalName(foreign.SchemaName)); 2088selector.SetAttribute(Keywords.XSD_XPATH, ".//" + xpathprefix + foreign.RelatedTable.EncodedTableName); 2117field.SetAttribute(Keywords.XSD_XPATH, encodedName.ToString()); 2128constraint.SetAttribute(Keywords.NAME, XmlConvert.EncodeLocalName(foreign.SchemaName)); 2134constraint.SetAttribute(Keywords.REFER, XmlConvert.EncodeLocalName(foreign.SchemaName)); 2136constraint.SetAttribute(Keywords.REFER, XmlConvert.EncodeLocalName(_constraint.SchemaName)); 2160selector.SetAttribute(Keywords.XSD_XPATH, ".//" + xpathprefix + table.EncodedTableName); 2201field.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));
System.Web.Services.Description (1)
System\Web\Services\Description\ServiceDescription.cs (1)
426claim.SetAttribute(Soap.Attribute.ConformsTo, Soap.BasicProfile1_1);