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