106 references to SetAttribute
PresentationFramework (2)
src\Framework\MS\Internal\IO\Packaging\XamlFilter.cs (1)
817
fixedPageTree.DocumentElement.
SetAttribute
(_xmlLangAttribute, _xamlReader.XmlLang);
src\Framework\System\Windows\Annotations\AnnotationHelper.cs (1)
1049
colorsElement.
SetAttribute
(HighlightComponent.BackgroundAttributeName, converter.ConvertToInvariantString(color.Value));
System.Data (79)
fx\src\data\System\Data\DataSet.cs (3)
1596
topNode.
SetAttribute
(reader.Name, reader.GetAttribute(i));
1963
topNode.
SetAttribute
(reader.Name, reader.GetAttribute(i));
2412
topNode.
SetAttribute
(reader.Name, reader.GetAttribute(i));
fx\src\data\System\Data\DataTable.cs (2)
5217
topNode.
SetAttribute
(reader.Name, reader.GetAttribute(i));
5435
topNode.
SetAttribute
(reader.Name, reader.GetAttribute(i));
fx\src\data\System\Data\SimpleType.cs (8)
252
typeNode.
SetAttribute
(Keywords.NAME, name);
264
type.
SetAttribute
(Keywords.BASE, (prefix +":"+ baseSimpleType.Name));
267
type.
SetAttribute
(Keywords.BASE, baseSimpleType.Name);
271
type.
SetAttribute
(Keywords.BASE, baseSimpleType.Name);
275
type.
SetAttribute
(Keywords.BASE, QualifiedName(baseType)); // has to be xs:SomePrimitiveType
279
type.
SetAttribute
(Keywords.BASE, (baseSimpleType != null) ? baseSimpleType.Name : QualifiedName(baseType));
285
constraint.
SetAttribute
(Keywords.VALUE, length.ToString(CultureInfo.InvariantCulture));
290
constraint.
SetAttribute
(Keywords.VALUE, maxLength.ToString(CultureInfo.InvariantCulture));
fx\src\data\System\Data\xmlsaver.cs (66)
339
rootSchema.
SetAttribute
(Keywords.TARGETNAMESPACE, targetNamespace );
340
rootSchema.
SetAttribute
(Keywords.XMLNS_MSTNS, targetNamespace );
344
rootSchema.
SetAttribute
(Keywords.XMLNS, targetNamespace);
345
rootSchema.
SetAttribute
(Keywords.XMLNS_XSD, Keywords.XSDNS);
346
rootSchema.
SetAttribute
(Keywords.XMLNS_MSDATA, Keywords.MSDNS);
348
rootSchema.
SetAttribute
(Keywords.XMLNS_MSPROP, Keywords.MSPROPNS);
352
rootSchema.
SetAttribute
(Keywords.XSD_ATTRIBUTEFORMDEFAULT, Keywords.QUALIFIED);
353
rootSchema.
SetAttribute
(Keywords.XSD_ELEMENTFORMDEFAULT, Keywords.QUALIFIED);
508
rootSchema.
SetAttribute
(Keywords.XSDID, XmlConvert.EncodeLocalName(_ds.DataSetName));
511
rootSchema.
SetAttribute
(Keywords.XSDID, XmlConvert.EncodeLocalName("NewDataSet"));
537
rootSchema.
SetAttribute
(Keywords.XMLNS_MSTNS, _ds.Namespace );
617
el.
SetAttribute
(Keywords.MINOCCURS, top[i].MinOccurs.ToString(CultureInfo.InvariantCulture));
620
el.
SetAttribute
(Keywords.MAXOCCURS, Keywords.ZERO_OR_MORE);
623
el.
SetAttribute
(Keywords.MAXOCCURS, top[i].MaxOccurs.ToString(CultureInfo.InvariantCulture));
631
node.
SetAttribute
(Keywords.REF, top[i].EncodedTableName);
633
node.
SetAttribute
(Keywords.REF, ((string)prefixes[top[i].Namespace])+':'+top[i].EncodedTableName);
643
node.
SetAttribute
(Keywords.REF, ((string)prefixes[top[i].Namespace])+':'+top[i].EncodedTableName);
699
_import.
SetAttribute
(Keywords.XSD_NAMESPACE, ns);
701
_import.
SetAttribute
(Keywords.XSD_SCHEMALOCATION, fileName + "_" + prefixes[ns] + ".xsd");
754
tNode.
SetAttribute
("xmlns:"+prefix, imp_ns);
756
_import2.
SetAttribute
(Keywords.XSD_NAMESPACE, imp_ns);
761
_import2.
SetAttribute
(Keywords.XSD_SCHEMALOCATION, fileName + fileExt); // for the dataset namespace don't append anything
763
_import2.
SetAttribute
(Keywords.XSD_SCHEMALOCATION, fileName + "_" + prefix +".xsd");
832
rootSchema.
SetAttribute
(Keywords.XMLNS_MSTNS, _ds.Namespace );
843
rootSchema.
SetAttribute
(Keywords.XMLNS_MSTNS, dt.Namespace );
868
dsElement.
SetAttribute
(Keywords.NAME, XmlConvert.EncodeLocalName(dataSet.DataSetName));
886
dsElement.
SetAttribute
(Keywords.NAME, XmlConvert.EncodeLocalName("NewDataSet"));
905
compositor.
SetAttribute
(Keywords.MINOCCURS, Keywords.ZERO_DIGIT);
906
compositor.
SetAttribute
(Keywords.MAXOCCURS, Keywords.ZERO_OR_MORE);
975
root.
SetAttribute
( Keywords.NAME, XmlConvert.EncodeLocalName( rel.RelationName ));
1039
_sRoot.
SetAttribute
("xmlns:"+prefix, NamespaceURI);
1040
schemaEl.
SetAttribute
("xmlns:"+prefix, NamespaceURI);
1081
root.
SetAttribute
(keyword,(prefix + ":" + name)); // look at below,this loop assumes we would be here just oen time: Its Wrong
1083
root.
SetAttribute
(keyword, name);
1086
root.
SetAttribute
(keyword, name);
1113
root.
SetAttribute
(keyword, XSDSchema.QualifiedName(col.XmlDataType));
1128
root.
SetAttribute
(keyword, XSDSchema.QualifiedName(typeName));
1210
root.
SetAttribute
( Keywords.NAME, col.EncodedColumnName);
1217
root.
SetAttribute
( Keywords.FORM, Keywords.UNQUALIFIED);
1256
root.
SetAttribute
(Keywords.DEFAULT, (bool)(col.DefaultValue)? Keywords.TRUE : Keywords.FALSE);
1260
root.
SetAttribute
(Keywords.DEFAULT, col.ConvertObjectToXml(col.DefaultValue));
1279
root.
SetAttribute
( Keywords.REF, prefixes[ col.Namespace]+":"+ col.EncodedColumnName);
1293
root.
SetAttribute
(Keywords.USE, Keywords.REQUIRED);
1297
root.
SetAttribute
(Keywords.USE, Keywords.PROHIBITED);
1301
root.
SetAttribute
(Keywords.MINOCCURS, minOccurs.ToString(CultureInfo.InvariantCulture));
1482
root.
SetAttribute
( Keywords.NAME, table.EncodedTableName );
1510
root.
SetAttribute
( Keywords.FORM, Keywords.UNQUALIFIED);
1557
root.
SetAttribute
(Keywords.TYPE, XSDSchema.QualifiedName(_typeName));
1576
type.
SetAttribute
(Keywords.NAME, table.TypeName.Name);
1584
root.
SetAttribute
( Keywords.TYPE, NewDiffgramGen.QualifiedName((string)prefixes[table.TypeName.Namespace], table.TypeName.Name) );
1658
NestedTable.
SetAttribute
( Keywords.REF, table.EncodedTableName );
1662
NestedTable.
SetAttribute
( Keywords.REF, childTable.EncodedTableName);
1668
NestedTable.
SetAttribute
(Keywords.MINOCCURS , "0");
1669
NestedTable.
SetAttribute
(Keywords.MAXOCCURS , Keywords.ZERO_OR_MORE);
1679
NestedTable.
SetAttribute
( Keywords.REF, ((string)prefixes[childTable.Namespace])+':'+childTable.EncodedTableName);
1733
constraint.
SetAttribute
( Keywords.NAME, XmlConvert.EncodeLocalName( unique.SchemaName ));
1742
selector.
SetAttribute
(Keywords.XSD_XPATH, ".//"+xpathprefix+table.EncodedTableName);
1770
field.
SetAttribute
(Keywords.XSD_XPATH, encodedName.ToString());
1800
constraint.
SetAttribute
( Keywords.NAME, XmlConvert.EncodeLocalName( foreign.SchemaName ));
1806
selector.
SetAttribute
(Keywords.XSD_XPATH, ".//"+xpathprefix+ foreign.RelatedTable.EncodedTableName);
1829
field.
SetAttribute
(Keywords.XSD_XPATH, encodedName.ToString());
1840
constraint.
SetAttribute
( Keywords.NAME,XmlConvert.EncodeLocalName( foreign.SchemaName ));
1846
constraint.
SetAttribute
( Keywords.REFER, XmlConvert.EncodeLocalName( foreign.SchemaName ));
1848
constraint.
SetAttribute
( Keywords.REFER, XmlConvert.EncodeLocalName( _constraint.SchemaName ));
1868
selector.
SetAttribute
(Keywords.XSD_XPATH, ".//"+xpathprefix+table.EncodedTableName);
1903
field.
SetAttribute
(Keywords.XSD_XPATH, encodedName.ToString());
System.ServiceModel (5)
System\ServiceModel\Channels\ReliableSessionBindingElement.cs (1)
742
childElement.
SetAttribute
(ReliableSessionPolicyStrings.Milliseconds, XmlConvert.ToString(milliseconds));
System\ServiceModel\Description\SoapHelper.cs (1)
396
dest.
SetAttribute
(attribute.Name, attribute.Value);
System\ServiceModel\Security\WSSecurityPolicy.cs (2)
390
result.
SetAttribute
(NameName, header.Name);
391
result.
SetAttribute
(NamespaceName, header.Namespace);
System\ServiceModel\Security\WSSecurityPolicy11.cs (1)
67
result.
SetAttribute
(RequireClientCertificateName, httpsBinding.RequireClientCertificate ? TrueName : FalseName);
System.Web.Services (1)
System\Web\Services\Description\ServiceDescription.cs (1)
499
claim.
SetAttribute
(Soap.Attribute.ConformsTo, Soap.BasicProfile1_1);
System.Windows.Forms (18)
parent\parent\parent\public\Internal\NDP\Inc\mansign.cs (9)
797
publisherIdentity.
SetAttribute
("name", signerCert.SubjectName.Name);
798
publisherIdentity.
SetAttribute
("issuerKeyHash", issuerKeyHash);
854
assemblyIdentity.
SetAttribute
("publicKeyToken", publicKeyToken);
951
assemblyIdentityNode.
SetAttribute
(attribute.Name, attribute.Value);
956
manifestInformationNode.
SetAttribute
("Hash", hash.Length == 0 ? "" : BytesToHexString(hash, 0, hash.Length));
957
manifestInformationNode.
SetAttribute
("Description", signer.Description == null ? "" : signer.Description);
958
manifestInformationNode.
SetAttribute
("Url", signer.DescriptionUrl == null ? "" : signer.DescriptionUrl);
1001
xmlDigitalSignature.
SetAttribute
("Id", "AuthenticodeSignature");
1109
xmlDigitalSignature.
SetAttribute
("Id", "StrongNameSignature");
parent\parent\parent\public\Internal\NDP\Inc\mansign2.cs (9)
1432
publisherIdentity.
SetAttribute
("name", signerCert.SubjectName.Name);
1433
publisherIdentity.
SetAttribute
("issuerKeyHash", issuerKeyHash);
1545
assemblyIdentity.
SetAttribute
("publicKeyToken", publicKeyToken);
1687
assemblyIdentityNode.
SetAttribute
(attribute.Name, attribute.Value);
1692
manifestInformationNode.
SetAttribute
("Hash", hash.Length == 0 ? "" : BytesToHexString(hash, 0, hash.Length));
1693
manifestInformationNode.
SetAttribute
("Description", signer.Description == null ? "" : signer.Description);
1694
manifestInformationNode.
SetAttribute
("Url", signer.DescriptionUrl == null ? "" : signer.DescriptionUrl);
1744
xmlDigitalSignature.
SetAttribute
("Id", "AuthenticodeSignature");
1962
xmlDigitalSignature.
SetAttribute
("Id", "StrongNameSignature");
WindowsBase (1)
Base\MS\Internal\IO\Packaging\XmlSignatureManifest.cs (1)
577
xmlE.
SetAttribute
(XTable.Get(XTable.ID.OpcSignatureNamespaceAttribute),