136 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.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);
705
assemblyIdentityNode.
SetAttribute
(attribute.Name, attribute.Value);
710
manifestInformationNode.
SetAttribute
("Hash", hash.Length == 0 ? "" : BytesToHexString(hash, 0, hash.Length));
711
manifestInformationNode.
SetAttribute
("Description", signer.Description ?? "");
712
manifestInformationNode.
SetAttribute
("Url", signer.DescriptionUrl ?? "");
780
xmlDigitalSignature.
SetAttribute
("Id", "AuthenticodeSignature");
1042
xmlDigitalSignature.
SetAttribute
("Id", "StrongNameSignature");
Microsoft.Maui.Resizetizer (6)
TizenResourceXmlGenerator.cs (6)
41
groupImageNode.
SetAttribute
("folder", "contents");
45
groupLayoutNode.
SetAttribute
("folder", "contents");
49
groupSoundNode.
SetAttribute
("folder", "contents");
53
groupBinNode.
SetAttribute
("folder", "contents");
76
node.
SetAttribute
("folder", $"contents/{subDir.Name}");
77
node.
SetAttribute
("screen-dpi-range", dpiRange);
PresentationFramework (4)
MS\Internal\IO\Packaging\XamlFilter.cs (1)
791
fixedPageTree.DocumentElement.
SetAttribute
(_xmlLangAttribute, _xamlReader.XmlLang);
System\Windows\Annotations\AnnotationHelper.cs (1)
1029
colorsElement.
SetAttribute
(HighlightComponent.BackgroundAttributeName, converter.ConvertToInvariantString(color.Value));
System\Windows\Documents\FixedTextBuilder.cs (2)
1573
newDumpNode.
SetAttribute
("id", node.ScopeId.ToString());
1581
_currentDumpNode.
SetAttribute
("Cookie", nodeLength.ToString());
ReachFramework (1)
PrintConfig\PrtTicket_Editor.cs (1)
215
root.
SetAttribute
("xmlns:" + prefix, nsURI);
System.Data.Common (79)
System\Data\DataSet.cs (3)
1728
topNode.
SetAttribute
(reader.Name, reader.GetAttribute(i));
2159
topNode.
SetAttribute
(reader.Name, reader.GetAttribute(i));
2705
topNode.
SetAttribute
(reader.Name, reader.GetAttribute(i));
System\Data\DataTable.cs (2)
5856
topNode.
SetAttribute
(reader.Name, reader.GetAttribute(i));
6125
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);
593
rootSchema.
SetAttribute
(Keywords.XSDID, XmlConvert.EncodeLocalName(_ds.DataSetName));
597
rootSchema.
SetAttribute
(Keywords.XSDID, XmlConvert.EncodeLocalName("NewDataSet"));
631
rootSchema.
SetAttribute
(Keywords.XMLNS_MSTNS, _ds.Namespace);
723
el.
SetAttribute
(Keywords.MINOCCURS, top[i].MinOccurs.ToString(CultureInfo.InvariantCulture));
727
el.
SetAttribute
(Keywords.MAXOCCURS, Keywords.ZERO_OR_MORE);
731
el.
SetAttribute
(Keywords.MAXOCCURS, top[i].MaxOccurs.ToString(CultureInfo.InvariantCulture));
740
node.
SetAttribute
(Keywords.REF, top[i].EncodedTableName);
742
node.
SetAttribute
(Keywords.REF, ((string)_prefixes[top[i].Namespace]!) + ':' + top[i].EncodedTableName);
753
node.
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");
886
tNode.
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");
980
rootSchema.
SetAttribute
(Keywords.XMLNS_MSTNS, _ds.Namespace);
994
rootSchema.
SetAttribute
(Keywords.XMLNS_MSTNS, dt.Namespace);
1024
_dsElement.
SetAttribute
(Keywords.NAME, XmlConvert.EncodeLocalName(dataSet.DataSetName));
1047
_dsElement.
SetAttribute
(Keywords.NAME, XmlConvert.EncodeLocalName("NewDataSet"));
1070
compositor.
SetAttribute
(Keywords.MINOCCURS, Keywords.ZERO_DIGIT);
1071
compositor.
SetAttribute
(Keywords.MAXOCCURS, Keywords.ZERO_OR_MORE);
1159
root.
SetAttribute
(Keywords.NAME, XmlConvert.EncodeLocalName(rel.RelationName));
1232
_sRoot!.
SetAttribute
("xmlns:" + prefix, NamespaceURI);
1233
schemaEl.
SetAttribute
("xmlns:" + prefix, NamespaceURI);
1282
root.
SetAttribute
(keyword, (prefix + ":" + name)); // look at below,this loop assumes we would be here just oen time: Its Wrong
1284
root.
SetAttribute
(keyword, name);
1287
root.
SetAttribute
(keyword, name);
1319
root.
SetAttribute
(keyword, XSDSchema.QualifiedName(col.XmlDataType));
1339
root.
SetAttribute
(keyword, XSDSchema.QualifiedName(typeName));
1437
root.
SetAttribute
(Keywords.NAME, col.EncodedColumnName);
1446
root.
SetAttribute
(Keywords.FORM, Keywords.UNQUALIFIED);
1492
root.
SetAttribute
(Keywords.DEFAULT, (bool)(col.DefaultValue) ? Keywords.TRUE : Keywords.FALSE);
1498
root.
SetAttribute
(Keywords.DEFAULT, col.ConvertObjectToXml(col.DefaultValue));
1517
root.
SetAttribute
(Keywords.REF, _prefixes[col.Namespace] + ":" + col.EncodedColumnName);
1531
root.
SetAttribute
(Keywords.USE, Keywords.REQUIRED);
1536
root.
SetAttribute
(Keywords.USE, Keywords.PROHIBITED);
1540
root.
SetAttribute
(Keywords.MINOCCURS, minOccurs.ToString(CultureInfo.InvariantCulture));
1741
root.
SetAttribute
(Keywords.NAME, table.EncodedTableName);
1777
root.
SetAttribute
(Keywords.FORM, Keywords.UNQUALIFIED);
1830
root.
SetAttribute
(Keywords.TYPE, XSDSchema.QualifiedName(_typeName));
1851
type.
SetAttribute
(Keywords.NAME, table.TypeName.Name);
1861
root.
SetAttribute
(Keywords.TYPE, NewDiffgramGen.QualifiedName((string)_prefixes[table.TypeName.Namespace]!, table.TypeName.Name));
1938
NestedTable.
SetAttribute
(Keywords.REF, table.EncodedTableName);
1943
NestedTable.
SetAttribute
(Keywords.REF, childTable.EncodedTableName);
1950
NestedTable.
SetAttribute
(Keywords.MINOCCURS, "0");
1951
NestedTable.
SetAttribute
(Keywords.MAXOCCURS, Keywords.ZERO_OR_MORE);
1963
NestedTable.
SetAttribute
(Keywords.REF, ((string)_prefixes[childTable.Namespace]!) + ':' + childTable.EncodedTableName);
2015
constraint.
SetAttribute
(Keywords.NAME, XmlConvert.EncodeLocalName(unique.SchemaName));
2024
selector.
SetAttribute
(Keywords.XSD_XPATH, ".//" + xpathprefix + table.EncodedTableName);
2059
field.
SetAttribute
(Keywords.XSD_XPATH, encodedName.ToString());
2092
constraint.
SetAttribute
(Keywords.NAME, XmlConvert.EncodeLocalName(foreign.SchemaName));
2098
selector.
SetAttribute
(Keywords.XSD_XPATH, ".//" + xpathprefix + foreign.RelatedTable.EncodedTableName);
2127
field.
SetAttribute
(Keywords.XSD_XPATH, encodedName.ToString());
2138
constraint.
SetAttribute
(Keywords.NAME, XmlConvert.EncodeLocalName(foreign.SchemaName));
2144
constraint.
SetAttribute
(Keywords.REFER, XmlConvert.EncodeLocalName(foreign.SchemaName));
2146
constraint.
SetAttribute
(Keywords.REFER, XmlConvert.EncodeLocalName(_constraint.SchemaName));
2170
selector.
SetAttribute
(Keywords.XSD_XPATH, ".//" + xpathprefix + table.EncodedTableName);
2211
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));