66 references to SetAttribute
Microsoft.Build (2)
Construction\ProjectElement.cs (2)
384XmlElement.SetAttribute(remoteAttribute.LocalName, remoteAttribute.NamespaceURI, remoteAttribute.Value); 402XmlElement.SetAttribute(attribute.LocalName, attribute.NamespaceURI, attribute.Value);
PresentationFramework (2)
MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (2)
522root.SetAttribute(name, AnnotationXmlConstants.Namespaces.BaseSchemaNamespace, value); 529root.SetAttribute(name, AnnotationXmlConstants.Namespaces.BaseSchemaNamespace, value);
ReachFramework (3)
PrintConfig\PrtTicket_Base.cs (1)
504optionNode.SetAttribute(PrintSchemaTags.Framework.NameAttr,
PrintConfig\PrtTicket_Editor.cs (2)
370newNode.SetAttribute(PrintSchemaTags.Framework.NameAttr, 383valueElement.SetAttribute("type",
System.Data.Common (59)
System\Data\SimpleType.cs (1)
238typeNode.SetAttribute(Keywords.TARGETNAMESPACE, Keywords.MSDNS, Namespace);
System\Data\xmlsaver.cs (56)
104node.SetAttribute(XmlConvert.EncodeLocalName(s), Keywords.MSPROPNS, v); 201root.SetAttribute(Keywords.MSD_DATATYPE, Keywords.MSDNS, col.DataType.FullName); 221root.SetAttribute(pd.Name, Keywords.MSDNS, textValue); 827rootSchema.SetAttribute(Keywords.MSD_FRAGMENTCOUNT, Keywords.MSDNS, _namespaces.Count.ToString(CultureInfo.InvariantCulture)); 1023_dsElement.SetAttribute(Keywords.MSD_ISDATASET, Keywords.MSDNS, Keywords.TRUE); 1025_dsElement.SetAttribute(Keywords.MSD_MAINDATATABLE, Keywords.MSDNS, XmlConvert.EncodeLocalName(((dt!.Namespace.Length == 0) ? dt.TableName : (dt.Namespace + ":" + dt.TableName)))); 1030_dsElement.SetAttribute(Keywords.MSD_CASESENSITIVE, Keywords.MSDNS, Keywords.TRUE); 1034_dsElement.SetAttribute(Keywords.MSD_LOCALE, Keywords.MSDNS, dataSet.Locale.ToString()); 1038_dsElement.SetAttribute(Keywords.MSD_USECURRENTLOCALE, Keywords.MSDNS, Keywords.TRUE); 1046_dsElement.SetAttribute(Keywords.MSD_ISDATASET, Keywords.MSDNS, Keywords.TRUE); 1047_dsElement.SetAttribute(Keywords.MSD_MAINDATATABLE, Keywords.MSDNS, XmlConvert.EncodeLocalName(((dt.Namespace.Length == 0) ? dt.TableName : (dt.Namespace + ":" + dt.TableName)))); 1052_dsElement.SetAttribute(Keywords.MSD_CASESENSITIVE, Keywords.MSDNS, Keywords.TRUE); 1056_dsElement.SetAttribute(Keywords.MSD_LOCALE, Keywords.MSDNS, dt.Locale.ToString()); 1060_dsElement.SetAttribute(Keywords.MSD_USECURRENTLOCALE, Keywords.MSDNS, Keywords.TRUE); 1154root.SetAttribute(Keywords.MSD_PARENT, Keywords.MSDNS, rel.ParentKey.Table.EncodedTableName); 1155root.SetAttribute(Keywords.MSD_CHILD, Keywords.MSDNS, rel.ChildKey.Table.EncodedTableName); 1158root.SetAttribute(Keywords.MSD_PARENTTABLENS, Keywords.MSDNS, rel.ParentKey.Table.Namespace); 1161root.SetAttribute(Keywords.MSD_CHILDTABLENS, Keywords.MSDNS, rel.ChildKey.Table.Namespace); 1177root.SetAttribute(Keywords.MSD_PARENTKEY, Keywords.MSDNS, text); 1198root.SetAttribute(Keywords.MSD_CHILDKEY, Keywords.MSDNS, text); 1343root.SetAttribute(Keywords.MSD_DATATYPE, Keywords.MSDNS, col.DataType.FullName); 1357root.SetAttribute("ReadOnly", Keywords.MSDNS, Keywords.TRUE); 1360root.SetAttribute("Expression", Keywords.MSDNS, col.Expression); 1364root.SetAttribute("AutoIncrement", Keywords.MSDNS, Keywords.TRUE); 1368root.SetAttribute("AutoIncrementSeed", Keywords.MSDNS, col.AutoIncrementSeed.ToString(CultureInfo.InvariantCulture)); 1371root.SetAttribute("AutoIncrementStep", Keywords.MSDNS, col.AutoIncrementStep.ToString(CultureInfo.InvariantCulture)); 1374root.SetAttribute("Caption", Keywords.MSDNS, col.Caption); 1377root.SetAttribute("Prefix", Keywords.MSDNS, col.Prefix); 1381root.SetAttribute("DateTimeMode", Keywords.MSDNS, col.DateTimeMode.ToString()); 1453root.SetAttribute(Keywords.MSD_ALLOWDBNULL, Keywords.MSDNS, Keywords.FALSE); 1457root.SetAttribute(Keywords.MSD_DEFAULTVALUE, Keywords.MSDNS, (bool)(col.DefaultValue) ? Keywords.TRUE : Keywords.FALSE); 1461root.SetAttribute(Keywords.MSD_DEFAULTVALUE, Keywords.MSDNS, col.ConvertObjectToXml(col.DefaultValue)); 1473root.SetAttribute(Keywords.MSD_DEFAULTVALUE, Keywords.MSDNS, (bool)(col.DefaultValue) ? Keywords.TRUE : Keywords.FALSE); 1477root.SetAttribute(Keywords.MSD_DEFAULTVALUE, Keywords.MSDNS, col.ConvertObjectToXml(col.DefaultValue)); 1500root.SetAttribute(Keywords.TARGETNAMESPACE, Keywords.MSDNS, col.Namespace); 1535root.SetAttribute(Keywords.MSD_ORDINAL, Keywords.MSDNS, col.Ordinal.ToString(CultureInfo.InvariantCulture)); 1728root.SetAttribute(Keywords.TARGETNAMESPACE, Keywords.MSDNS, table.Namespace); 1775root.SetAttribute(Keywords.MSD_CASESENSITIVE, Keywords.MSDNS, table.CaseSensitive.ToString()); 1779root.SetAttribute(Keywords.MSD_LOCALE, Keywords.MSDNS, table.Locale.ToString()); 1869root.SetAttribute(Keywords.XSD_NILLABLE, string.Empty, Keywords.TRUE); 1873sc.SetAttribute(Keywords.MSD_DEFAULTVALUE, Keywords.MSDNS, colTxt.ConvertObjectToXml(colTxt.DefaultValue)); 1876sc.SetAttribute(Keywords.MSD_COLUMNNAME, Keywords.MSDNS, colTxt.ColumnName); 1877sc.SetAttribute(Keywords.MSD_ORDINAL, Keywords.MSDNS, colTxt.Ordinal.ToString(CultureInfo.InvariantCulture)); 2003constraint.SetAttribute(Keywords.MSD_TABLENS, Keywords.MSDNS, table.Namespace); 2008constraint.SetAttribute(Keywords.MSD_CONSTRAINTNAME, Keywords.MSDNS, unique.ConstraintName); 2021constraint.SetAttribute(Keywords.MSD_PRIMARYKEY, Keywords.MSDNS, Keywords.TRUE); 2085constraint.SetAttribute(Keywords.MSD_TABLENS, Keywords.MSDNS, table.Namespace); 2131constraint.SetAttribute(Keywords.MSD_TABLENS, Keywords.MSDNS, foreign.Table!.Namespace); 2141constraint.SetAttribute(Keywords.MSD_CONSTRAINTNAME, Keywords.MSDNS, foreign.ConstraintName); 2145constraint.SetAttribute(Keywords.MSD_CONSTRAINTONLY, Keywords.MSDNS, Keywords.TRUE); 2150constraint.SetAttribute(Keywords.MSD_ISNESTED, Keywords.MSDNS, Keywords.TRUE); 2155constraint.SetAttribute(Keywords.MSD_RELATIONNAME, Keywords.MSDNS, XmlConvert.EncodeLocalName(rel.RelationName)); 2165constraint.SetAttribute(Keywords.MSD_ACCEPTREJECTRULE, Keywords.MSDNS, 2169constraint.SetAttribute(Keywords.MSD_UPDATERULE, Keywords.MSDNS, TranslateRule(foreign.UpdateRule)); 2172constraint.SetAttribute(Keywords.MSD_DELETERULE, Keywords.MSDNS, TranslateRule(foreign.DeleteRule)); 2235root.SetAttribute(Keywords.MSD_DATATYPE, Keywords.MSDNS, result);
System\Xml\XmlDataDocument.cs (2)
703node.SetAttribute(col.EncodedColumnName, col.Namespace, col.ConvertObjectToXml(value)); 1522rowElement.SetAttribute(col.EncodedColumnName, col.Namespace, col.ConvertObjectToXml(value));