163 references to SetAttribute
Microsoft.Build (4)
Construction\ProjectTaskElement.cs (1)
330
XmlElement.
SetAttribute
(name, unevaluatedValue);
Evaluation\Preprocessor.cs (2)
251
destinationDocument.DocumentElement.
SetAttribute
(XMakeAttributes.initialTargets, outerInitialTargets + innerInitialTargets);
263
destinationDocument.DocumentElement.
SetAttribute
(XMakeAttributes.defaultTargets, innerDefaultTargets);
Xml\ProjectXmlUtilities.cs (1)
225
element.
SetAttribute
(name, value);
Microsoft.Build.Conversion.Core (1)
ProjectFileConverter.cs (1)
2859
referenceElement.
SetAttribute
(VSProjectAttributes.project, referencedProjectGuid);
Microsoft.Build.Engine (24)
Engine\BuildTask.cs (8)
271
this.taskElement.
SetAttribute
(XMakeAttributes.continueOnError, "true");
276
this.taskElement.
SetAttribute
(XMakeAttributes.continueOnError, "false");
556
taskElement.
SetAttribute
(parameterName, parameterValue);
603
newOutputElement.
SetAttribute
(XMakeAttributes.taskParameter, taskParameter);
604
newOutputElement.
SetAttribute
(XMakeAttributes.itemName, itemName);
608
newOutputElement.
SetAttribute
(XMakeAttributes.condition, condition);
647
newOutputElement.
SetAttribute
(XMakeAttributes.taskParameter, taskParameter);
648
newOutputElement.
SetAttribute
(XMakeAttributes.propertyName, propertyName);
Engine\Import.cs (2)
113
ImportElement.
SetAttribute
(XMakeAttributes.project, value);
182
ImportElement.
SetAttribute
(XMakeAttributes.condition, value);
Engine\ImportCollection.cs (2)
298
newImportElement.
SetAttribute
(XMakeAttributes.condition, condition);
300
newImportElement.
SetAttribute
(XMakeAttributes.project, projectFile);
Engine\Project.cs (6)
568
mainProjectElement.
SetAttribute
(XMakeAttributes.defaultTargets, value);
626
mainProjectElement.
SetAttribute
(XMakeAttributes.initialTargets, value);
878
ProjectElement.
SetAttribute
(XMakeAttributes.toolsVersion, value);
2990
newUsingTaskElement.
SetAttribute
(XMakeAttributes.taskName, taskName);
2994
newUsingTaskElement.
SetAttribute
(XMakeAttributes.assemblyFile, assembly);
2998
newUsingTaskElement.
SetAttribute
(XMakeAttributes.assemblyName, assembly);
Engine\TargetCollection.cs (1)
311
newTargetElement.
SetAttribute
(XMakeAttributes.name, targetName);
Properties\BuildPropertyGroup.cs (1)
225
this.propertyGroupElement.
SetAttribute
(XMakeAttributes.condition, condition);
Solution\SolutionWrapperProject.cs (2)
606
newTarget.TargetElement.
SetAttribute
("Outputs", string.Format(CultureInfo.InvariantCulture, "@({0})", targetOutputItemName));
1646
newTarget.TargetElement.
SetAttribute
("Outputs", string.Format(CultureInfo.InvariantCulture, "@({0})", targetOutputItemName));
Xml\BuildItemGroupChildXml.cs (1)
191
element.
SetAttribute
(XMakeAttributes.include, value);
Xml\ProjectXmlUtilities.cs (1)
196
element.
SetAttribute
(name, value);
Microsoft.Build.Tasks.Core (10)
AddToWin32Manifest.cs (1)
217
winSettingsNode.
SetAttribute
(XMakeAttributes.xmlns, WindowsSettingsNamespace);
ManifestUtil\mansign2.cs (9)
432
publisherIdentity.
SetAttribute
("name", signerCert.SubjectName.Name);
433
publisherIdentity.
SetAttribute
("issuerKeyHash", issuerKeyHash);
548
assemblyIdentity.
SetAttribute
("publicKeyToken", publicKeyToken);
703
assemblyIdentityNode.
SetAttribute
(attribute.Name, attribute.Value);
708
manifestInformationNode.
SetAttribute
("Hash", hash.Length == 0 ? "" : BytesToHexString(hash, 0, hash.Length));
709
manifestInformationNode.
SetAttribute
("Description", signer.Description ?? "");
710
manifestInformationNode.
SetAttribute
("Url", signer.DescriptionUrl ?? "");
778
xmlDigitalSignature.
SetAttribute
("Id", "AuthenticodeSignature");
1040
xmlDigitalSignature.
SetAttribute
("Id", "StrongNameSignature");
Microsoft.Build.Tasks.UnitTests (7)
AssignProjectConfiguration_Tests.cs (7)
127
element.
SetAttribute
("BuildProjectInSolution", "IAmReallyABadOne");
167
element.
SetAttribute
("BuildProjectInSolution", "true");
190
element.
SetAttribute
("BuildProjectInSolution", "false");
210
element.
SetAttribute
("BuildProjectInSolution", "false");
234
element.
SetAttribute
("BuildProjectInSolution", "false");
244
element.
SetAttribute
("BuildProjectInSolution", "false");
254
element.
SetAttribute
("BuildProjectInSolution", "false");
PresentationFramework (4)
MS\Internal\IO\Packaging\XamlFilter.cs (1)
797
fixedPageTree.DocumentElement.
SetAttribute
(_xmlLangAttribute, _xamlReader.XmlLang);
System\Windows\Annotations\AnnotationHelper.cs (1)
1041
colorsElement.
SetAttribute
(HighlightComponent.BackgroundAttributeName, converter.ConvertToInvariantString(color.Value));
System\Windows\Documents\FixedTextBuilder.cs (2)
1589
newDumpNode.
SetAttribute
("id", node.ScopeId.ToString());
1597
_currentDumpNode.
SetAttribute
("Cookie", nodeLength.ToString());
ReachFramework (1)
PrintConfig\PrtTicket_Editor.cs (1)
222
root.
SetAttribute
("xmlns:" + prefix, nsURI);
System.Data.Common (79)
System\Data\DataSet.cs (3)
1708
topNode.
SetAttribute
(reader.Name, reader.GetAttribute(i));
2121
topNode.
SetAttribute
(reader.Name, reader.GetAttribute(i));
2660
topNode.
SetAttribute
(reader.Name, reader.GetAttribute(i));
System\Data\DataTable.cs (2)
5822
topNode.
SetAttribute
(reader.Name, reader.GetAttribute(i));
6090
topNode.
SetAttribute
(reader.Name, reader.GetAttribute(i));
System\Data\SimpleType.cs (8)
235
typeNode.
SetAttribute
(Keywords.NAME, _name);
252
type.
SetAttribute
(Keywords.BASE, (prefix + ":" + _baseSimpleType.Name));
256
type.
SetAttribute
(Keywords.BASE, _baseSimpleType.Name);
261
type.
SetAttribute
(Keywords.BASE, _baseSimpleType.Name);
266
type.
SetAttribute
(Keywords.BASE, QualifiedName(_baseType!)); // has to be xs:SomePrimitiveType
271
type.
SetAttribute
(Keywords.BASE, (_baseSimpleType != null) ? _baseSimpleType.Name : QualifiedName(_baseType!));
278
constraint.
SetAttribute
(Keywords.VALUE, _length.ToString(CultureInfo.InvariantCulture));
284
constraint.
SetAttribute
(Keywords.VALUE, _maxLength.ToString(CultureInfo.InvariantCulture));
System\Data\xmlsaver.cs (66)
389
rootSchema.
SetAttribute
(Keywords.TARGETNAMESPACE, targetNamespace);
390
rootSchema.
SetAttribute
(Keywords.XMLNS_MSTNS, targetNamespace);
394
rootSchema.
SetAttribute
(Keywords.XMLNS, targetNamespace);
395
rootSchema.
SetAttribute
(Keywords.XMLNS_XSD, Keywords.XSDNS);
396
rootSchema.
SetAttribute
(Keywords.XMLNS_MSDATA, Keywords.MSDNS);
399
rootSchema.
SetAttribute
(Keywords.XMLNS_MSPROP, Keywords.MSPROPNS);
404
rootSchema.
SetAttribute
(Keywords.XSD_ATTRIBUTEFORMDEFAULT, Keywords.QUALIFIED);
405
rootSchema.
SetAttribute
(Keywords.XSD_ELEMENTFORMDEFAULT, Keywords.QUALIFIED);
592
rootSchema.
SetAttribute
(Keywords.XSDID, XmlConvert.EncodeLocalName(_ds.DataSetName));
596
rootSchema.
SetAttribute
(Keywords.XSDID, XmlConvert.EncodeLocalName("NewDataSet"));
630
rootSchema.
SetAttribute
(Keywords.XMLNS_MSTNS, _ds.Namespace);
722
el.
SetAttribute
(Keywords.MINOCCURS, top[i].MinOccurs.ToString(CultureInfo.InvariantCulture));
726
el.
SetAttribute
(Keywords.MAXOCCURS, Keywords.ZERO_OR_MORE);
730
el.
SetAttribute
(Keywords.MAXOCCURS, top[i].MaxOccurs.ToString(CultureInfo.InvariantCulture));
739
node.
SetAttribute
(Keywords.REF, top[i].EncodedTableName);
741
node.
SetAttribute
(Keywords.REF, ((string)_prefixes[top[i].Namespace]!) + ':' + top[i].EncodedTableName);
752
node.
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");
885
tNode.
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");
978
rootSchema.
SetAttribute
(Keywords.XMLNS_MSTNS, _ds.Namespace);
992
rootSchema.
SetAttribute
(Keywords.XMLNS_MSTNS, dt.Namespace);
1022
_dsElement.
SetAttribute
(Keywords.NAME, XmlConvert.EncodeLocalName(dataSet.DataSetName));
1045
_dsElement.
SetAttribute
(Keywords.NAME, XmlConvert.EncodeLocalName("NewDataSet"));
1068
compositor.
SetAttribute
(Keywords.MINOCCURS, Keywords.ZERO_DIGIT);
1069
compositor.
SetAttribute
(Keywords.MAXOCCURS, Keywords.ZERO_OR_MORE);
1152
root.
SetAttribute
(Keywords.NAME, XmlConvert.EncodeLocalName(rel.RelationName));
1225
_sRoot!.
SetAttribute
("xmlns:" + prefix, NamespaceURI);
1226
schemaEl.
SetAttribute
("xmlns:" + prefix, NamespaceURI);
1275
root.
SetAttribute
(keyword, (prefix + ":" + name)); // look at below,this loop assumes we would be here just oen time: Its Wrong
1277
root.
SetAttribute
(keyword, name);
1280
root.
SetAttribute
(keyword, name);
1312
root.
SetAttribute
(keyword, XSDSchema.QualifiedName(col.XmlDataType));
1332
root.
SetAttribute
(keyword, XSDSchema.QualifiedName(typeName));
1429
root.
SetAttribute
(Keywords.NAME, col.EncodedColumnName);
1438
root.
SetAttribute
(Keywords.FORM, Keywords.UNQUALIFIED);
1484
root.
SetAttribute
(Keywords.DEFAULT, (bool)(col.DefaultValue) ? Keywords.TRUE : Keywords.FALSE);
1490
root.
SetAttribute
(Keywords.DEFAULT, col.ConvertObjectToXml(col.DefaultValue));
1509
root.
SetAttribute
(Keywords.REF, _prefixes[col.Namespace] + ":" + col.EncodedColumnName);
1523
root.
SetAttribute
(Keywords.USE, Keywords.REQUIRED);
1528
root.
SetAttribute
(Keywords.USE, Keywords.PROHIBITED);
1532
root.
SetAttribute
(Keywords.MINOCCURS, minOccurs.ToString(CultureInfo.InvariantCulture));
1731
root.
SetAttribute
(Keywords.NAME, table.EncodedTableName);
1767
root.
SetAttribute
(Keywords.FORM, Keywords.UNQUALIFIED);
1820
root.
SetAttribute
(Keywords.TYPE, XSDSchema.QualifiedName(_typeName));
1841
type.
SetAttribute
(Keywords.NAME, table.TypeName.Name);
1851
root.
SetAttribute
(Keywords.TYPE, NewDiffgramGen.QualifiedName((string)_prefixes[table.TypeName.Namespace]!, table.TypeName.Name));
1928
NestedTable.
SetAttribute
(Keywords.REF, table.EncodedTableName);
1933
NestedTable.
SetAttribute
(Keywords.REF, childTable.EncodedTableName);
1940
NestedTable.
SetAttribute
(Keywords.MINOCCURS, "0");
1941
NestedTable.
SetAttribute
(Keywords.MAXOCCURS, Keywords.ZERO_OR_MORE);
1953
NestedTable.
SetAttribute
(Keywords.REF, ((string)_prefixes[childTable.Namespace]!) + ':' + childTable.EncodedTableName);
2005
constraint.
SetAttribute
(Keywords.NAME, XmlConvert.EncodeLocalName(unique.SchemaName));
2014
selector.
SetAttribute
(Keywords.XSD_XPATH, ".//" + xpathprefix + table.EncodedTableName);
2049
field.
SetAttribute
(Keywords.XSD_XPATH, encodedName.ToString());
2082
constraint.
SetAttribute
(Keywords.NAME, XmlConvert.EncodeLocalName(foreign.SchemaName));
2088
selector.
SetAttribute
(Keywords.XSD_XPATH, ".//" + xpathprefix + foreign.RelatedTable.EncodedTableName);
2117
field.
SetAttribute
(Keywords.XSD_XPATH, encodedName.ToString());
2128
constraint.
SetAttribute
(Keywords.NAME, XmlConvert.EncodeLocalName(foreign.SchemaName));
2134
constraint.
SetAttribute
(Keywords.REFER, XmlConvert.EncodeLocalName(foreign.SchemaName));
2136
constraint.
SetAttribute
(Keywords.REFER, XmlConvert.EncodeLocalName(_constraint.SchemaName));
2160
selector.
SetAttribute
(Keywords.XSD_XPATH, ".//" + xpathprefix + table.EncodedTableName);
2201
field.
SetAttribute
(Keywords.XSD_XPATH, encodedName.ToString());
System.Security.Cryptography.Xml (32)
System\Security\Cryptography\Xml\CipherReference.cs (1)
60
referenceElement.
SetAttribute
("URI", Uri);
System\Security\Cryptography\Xml\DataObject.cs (3)
121
objectElement.
SetAttribute
("Id", _id);
123
objectElement.
SetAttribute
("MimeType", _mimeType);
125
objectElement.
SetAttribute
("Encoding", _encoding);
System\Security\Cryptography\Xml\EncryptedData.cs (4)
87
encryptedDataElement.
SetAttribute
("Id", Id);
89
encryptedDataElement.
SetAttribute
("Type", Type);
91
encryptedDataElement.
SetAttribute
("MimeType", MimeType);
93
encryptedDataElement.
SetAttribute
("Encoding", Encoding);
System\Security\Cryptography\Xml\EncryptedKey.cs (5)
162
encryptedKeyElement.
SetAttribute
("Id", Id);
164
encryptedKeyElement.
SetAttribute
("Type", Type);
166
encryptedKeyElement.
SetAttribute
("MimeType", MimeType);
168
encryptedKeyElement.
SetAttribute
("Encoding", Encoding);
170
encryptedKeyElement.
SetAttribute
("Recipient", Recipient);
System\Security\Cryptography\Xml\EncryptedReference.cs (1)
96
referenceElement.
SetAttribute
("URI", _uri);
System\Security\Cryptography\Xml\EncryptionMethod.cs (1)
71
encryptionMethodElement.
SetAttribute
("Algorithm", _algorithm);
System\Security\Cryptography\Xml\KeyInfo.cs (1)
47
keyInfoElement.
SetAttribute
("Id", _id);
System\Security\Cryptography\Xml\KeyInfoRetrievalMethod.cs (2)
59
retrievalMethodElement.
SetAttribute
("URI", _uri);
61
retrievalMethodElement.
SetAttribute
("Type", _type);
System\Security\Cryptography\Xml\Reference.cs (4)
173
referenceElement.
SetAttribute
("Id", _id);
176
referenceElement.
SetAttribute
("URI", _uri);
179
referenceElement.
SetAttribute
("Type", _type);
190
digestMethodElement.
SetAttribute
("Algorithm", _digestMethod);
System\Security\Cryptography\Xml\Signature.cs (2)
97
signatureElement.
SetAttribute
("Id", _id);
112
signatureValueElement.
SetAttribute
("Id", _signatureValueId);
System\Security\Cryptography\Xml\SignedInfo.cs (2)
169
signedInfoElement.
SetAttribute
("Id", _id);
180
signatureMethodElement.
SetAttribute
("Algorithm", _signatureMethod);
System\Security\Cryptography\Xml\Transform.cs (1)
132
transformElement.
SetAttribute
("Algorithm", Algorithm);
System\Security\Cryptography\Xml\XmlDecryptionTransform.cs (2)
127
element.
SetAttribute
("Algorithm", Algorithm);
131
exceptUriElement.
SetAttribute
("URI", uri);
System\Security\Cryptography\Xml\XmlDsigExcC14NTransform.cs (2)
101
element.
SetAttribute
("Algorithm", Algorithm);
103
prefixListElement.
SetAttribute
("PrefixList", InclusiveNamespacesPrefixList);
System\Security\Cryptography\Xml\XmlDsigXPathTransform.cs (1)
107
element.
SetAttribute
("xmlns:" + prefix, _nsm.LookupNamespace(prefix));
System.Web.Services.Description (1)
System\Web\Services\Description\ServiceDescription.cs (1)
426
claim.
SetAttribute
(Soap.Attribute.ConformsTo, Soap.BasicProfile1_1);