66 references to SetAttribute
Microsoft.Build (2)
Construction\ProjectElement.cs (2)
384
XmlElement.
SetAttribute
(remoteAttribute.LocalName, remoteAttribute.NamespaceURI, remoteAttribute.Value);
402
XmlElement.
SetAttribute
(attribute.LocalName, attribute.NamespaceURI, attribute.Value);
PresentationFramework (2)
MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (2)
522
root.
SetAttribute
(name, AnnotationXmlConstants.Namespaces.BaseSchemaNamespace, value);
529
root.
SetAttribute
(name, AnnotationXmlConstants.Namespaces.BaseSchemaNamespace, value);
ReachFramework (3)
PrintConfig\PrtTicket_Base.cs (1)
504
optionNode.
SetAttribute
(PrintSchemaTags.Framework.NameAttr,
PrintConfig\PrtTicket_Editor.cs (2)
370
newNode.
SetAttribute
(PrintSchemaTags.Framework.NameAttr,
383
valueElement.
SetAttribute
("type",
System.Data.Common (59)
System\Data\SimpleType.cs (1)
238
typeNode.
SetAttribute
(Keywords.TARGETNAMESPACE, Keywords.MSDNS, Namespace);
System\Data\xmlsaver.cs (56)
104
node.
SetAttribute
(XmlConvert.EncodeLocalName(s), Keywords.MSPROPNS, v);
201
root.
SetAttribute
(Keywords.MSD_DATATYPE, Keywords.MSDNS, col.DataType.FullName);
221
root.
SetAttribute
(pd.Name, Keywords.MSDNS, textValue);
828
rootSchema.
SetAttribute
(Keywords.MSD_FRAGMENTCOUNT, Keywords.MSDNS, _namespaces.Count.ToString(CultureInfo.InvariantCulture));
1025
_dsElement.
SetAttribute
(Keywords.MSD_ISDATASET, Keywords.MSDNS, Keywords.TRUE);
1027
_dsElement.
SetAttribute
(Keywords.MSD_MAINDATATABLE, Keywords.MSDNS, XmlConvert.EncodeLocalName(((dt!.Namespace.Length == 0) ? dt.TableName : (dt.Namespace + ":" + dt.TableName))));
1032
_dsElement.
SetAttribute
(Keywords.MSD_CASESENSITIVE, Keywords.MSDNS, Keywords.TRUE);
1036
_dsElement.
SetAttribute
(Keywords.MSD_LOCALE, Keywords.MSDNS, dataSet.Locale.ToString());
1040
_dsElement.
SetAttribute
(Keywords.MSD_USECURRENTLOCALE, Keywords.MSDNS, Keywords.TRUE);
1048
_dsElement.
SetAttribute
(Keywords.MSD_ISDATASET, Keywords.MSDNS, Keywords.TRUE);
1049
_dsElement.
SetAttribute
(Keywords.MSD_MAINDATATABLE, Keywords.MSDNS, XmlConvert.EncodeLocalName(((dt.Namespace.Length == 0) ? dt.TableName : (dt.Namespace + ":" + dt.TableName))));
1054
_dsElement.
SetAttribute
(Keywords.MSD_CASESENSITIVE, Keywords.MSDNS, Keywords.TRUE);
1058
_dsElement.
SetAttribute
(Keywords.MSD_LOCALE, Keywords.MSDNS, dt.Locale.ToString());
1062
_dsElement.
SetAttribute
(Keywords.MSD_USECURRENTLOCALE, Keywords.MSDNS, Keywords.TRUE);
1161
root.
SetAttribute
(Keywords.MSD_PARENT, Keywords.MSDNS, rel.ParentKey.Table.EncodedTableName);
1162
root.
SetAttribute
(Keywords.MSD_CHILD, Keywords.MSDNS, rel.ChildKey.Table.EncodedTableName);
1165
root.
SetAttribute
(Keywords.MSD_PARENTTABLENS, Keywords.MSDNS, rel.ParentKey.Table.Namespace);
1168
root.
SetAttribute
(Keywords.MSD_CHILDTABLENS, Keywords.MSDNS, rel.ChildKey.Table.Namespace);
1184
root.
SetAttribute
(Keywords.MSD_PARENTKEY, Keywords.MSDNS, text);
1205
root.
SetAttribute
(Keywords.MSD_CHILDKEY, Keywords.MSDNS, text);
1350
root.
SetAttribute
(Keywords.MSD_DATATYPE, Keywords.MSDNS, col.DataType.FullName);
1364
root.
SetAttribute
("ReadOnly", Keywords.MSDNS, Keywords.TRUE);
1367
root.
SetAttribute
("Expression", Keywords.MSDNS, col.Expression);
1371
root.
SetAttribute
("AutoIncrement", Keywords.MSDNS, Keywords.TRUE);
1375
root.
SetAttribute
("AutoIncrementSeed", Keywords.MSDNS, col.AutoIncrementSeed.ToString(CultureInfo.InvariantCulture));
1378
root.
SetAttribute
("AutoIncrementStep", Keywords.MSDNS, col.AutoIncrementStep.ToString(CultureInfo.InvariantCulture));
1381
root.
SetAttribute
("Caption", Keywords.MSDNS, col.Caption);
1384
root.
SetAttribute
("Prefix", Keywords.MSDNS, col.Prefix);
1388
root.
SetAttribute
("DateTimeMode", Keywords.MSDNS, col.DateTimeMode.ToString());
1461
root.
SetAttribute
(Keywords.MSD_ALLOWDBNULL, Keywords.MSDNS, Keywords.FALSE);
1465
root.
SetAttribute
(Keywords.MSD_DEFAULTVALUE, Keywords.MSDNS, (bool)(col.DefaultValue) ? Keywords.TRUE : Keywords.FALSE);
1469
root.
SetAttribute
(Keywords.MSD_DEFAULTVALUE, Keywords.MSDNS, col.ConvertObjectToXml(col.DefaultValue));
1481
root.
SetAttribute
(Keywords.MSD_DEFAULTVALUE, Keywords.MSDNS, (bool)(col.DefaultValue) ? Keywords.TRUE : Keywords.FALSE);
1485
root.
SetAttribute
(Keywords.MSD_DEFAULTVALUE, Keywords.MSDNS, col.ConvertObjectToXml(col.DefaultValue));
1508
root.
SetAttribute
(Keywords.TARGETNAMESPACE, Keywords.MSDNS, col.Namespace);
1543
root.
SetAttribute
(Keywords.MSD_ORDINAL, Keywords.MSDNS, col.Ordinal.ToString(CultureInfo.InvariantCulture));
1738
root.
SetAttribute
(Keywords.TARGETNAMESPACE, Keywords.MSDNS, table.Namespace);
1785
root.
SetAttribute
(Keywords.MSD_CASESENSITIVE, Keywords.MSDNS, table.CaseSensitive.ToString());
1789
root.
SetAttribute
(Keywords.MSD_LOCALE, Keywords.MSDNS, table.Locale.ToString());
1879
root.
SetAttribute
(Keywords.XSD_NILLABLE, string.Empty, Keywords.TRUE);
1883
sc.
SetAttribute
(Keywords.MSD_DEFAULTVALUE, Keywords.MSDNS, colTxt.ConvertObjectToXml(colTxt.DefaultValue));
1886
sc.
SetAttribute
(Keywords.MSD_COLUMNNAME, Keywords.MSDNS, colTxt.ColumnName);
1887
sc.
SetAttribute
(Keywords.MSD_ORDINAL, Keywords.MSDNS, colTxt.Ordinal.ToString(CultureInfo.InvariantCulture));
2013
constraint.
SetAttribute
(Keywords.MSD_TABLENS, Keywords.MSDNS, table.Namespace);
2018
constraint.
SetAttribute
(Keywords.MSD_CONSTRAINTNAME, Keywords.MSDNS, unique.ConstraintName);
2031
constraint.
SetAttribute
(Keywords.MSD_PRIMARYKEY, Keywords.MSDNS, Keywords.TRUE);
2095
constraint.
SetAttribute
(Keywords.MSD_TABLENS, Keywords.MSDNS, table.Namespace);
2141
constraint.
SetAttribute
(Keywords.MSD_TABLENS, Keywords.MSDNS, foreign.Table!.Namespace);
2151
constraint.
SetAttribute
(Keywords.MSD_CONSTRAINTNAME, Keywords.MSDNS, foreign.ConstraintName);
2155
constraint.
SetAttribute
(Keywords.MSD_CONSTRAINTONLY, Keywords.MSDNS, Keywords.TRUE);
2160
constraint.
SetAttribute
(Keywords.MSD_ISNESTED, Keywords.MSDNS, Keywords.TRUE);
2165
constraint.
SetAttribute
(Keywords.MSD_RELATIONNAME, Keywords.MSDNS, XmlConvert.EncodeLocalName(rel.RelationName));
2175
constraint.
SetAttribute
(Keywords.MSD_ACCEPTREJECTRULE, Keywords.MSDNS,
2179
constraint.
SetAttribute
(Keywords.MSD_UPDATERULE, Keywords.MSDNS, TranslateRule(foreign.UpdateRule));
2182
constraint.
SetAttribute
(Keywords.MSD_DELETERULE, Keywords.MSDNS, TranslateRule(foreign.DeleteRule));
2245
root.
SetAttribute
(Keywords.MSD_DATATYPE, Keywords.MSDNS, result);
System\Xml\XmlDataDocument.cs (2)
682
node.
SetAttribute
(col.EncodedColumnName, col.Namespace, col.ConvertObjectToXml(value));
1505
rowElement.
SetAttribute
(col.EncodedColumnName, col.Namespace, col.ConvertObjectToXml(value));