74 references to SetAttribute
PresentationFramework (2)
src\Framework\MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (2)
528
root.
SetAttribute
(name, AnnotationXmlConstants.Namespaces.BaseSchemaNamespace, value);
535
root.
SetAttribute
(name, AnnotationXmlConstants.Namespaces.BaseSchemaNamespace, value);
System.Data (59)
fx\src\data\System\Data\SimpleType.cs (1)
254
typeNode.
SetAttribute
(Keywords.TARGETNAMESPACE, Keywords.MSDNS, this.Namespace);
fx\src\data\System\Data\xmlsaver.cs (56)
97
node.
SetAttribute
(XmlConvert.EncodeLocalName(s), Keywords.MSPROPNS, v);
179
root.
SetAttribute
(Keywords.MSD_DATATYPE, Keywords.MSDNS, col.DataType.FullName);
197
root.
SetAttribute
(pd.Name, Keywords.MSDNS, textValue);
706
rootSchema.
SetAttribute
(Keywords.MSD_FRAGMENTCOUNT, Keywords.MSDNS, namespaces.Count.ToString(CultureInfo.InvariantCulture));
869
dsElement.
SetAttribute
(Keywords.MSD_ISDATASET, Keywords.MSDNS, Keywords.TRUE);
871
dsElement.
SetAttribute
(Keywords.MSD_MAINDATATABLE, Keywords.MSDNS, XmlConvert.EncodeLocalName(((dt.Namespace.Length == 0)?dt.TableName : (dt.Namespace + ":" + dt.TableName))));
875
dsElement.
SetAttribute
(Keywords.MSD_CASESENSITIVE, Keywords.MSDNS, Keywords.TRUE);
878
dsElement.
SetAttribute
(Keywords.MSD_LOCALE, Keywords.MSDNS, dataSet.Locale.ToString());
881
dsElement.
SetAttribute
(Keywords.MSD_USECURRENTLOCALE, Keywords.MSDNS, Keywords.TRUE);
887
dsElement.
SetAttribute
(Keywords.MSD_ISDATASET, Keywords.MSDNS, Keywords.TRUE);
888
dsElement.
SetAttribute
(Keywords.MSD_MAINDATATABLE, Keywords.MSDNS, XmlConvert.EncodeLocalName(((dt.Namespace.Length == 0)?dt.TableName : (dt.Namespace + ":" + dt.TableName))));
891
dsElement.
SetAttribute
(Keywords.MSD_CASESENSITIVE, Keywords.MSDNS, Keywords.TRUE);
894
dsElement.
SetAttribute
(Keywords.MSD_LOCALE, Keywords.MSDNS, dt.Locale.ToString());
897
dsElement.
SetAttribute
(Keywords.MSD_USECURRENTLOCALE, Keywords.MSDNS, Keywords.TRUE);
977
root.
SetAttribute
(Keywords.MSD_PARENT, Keywords.MSDNS, rel.ParentKey.Table.EncodedTableName);
978
root.
SetAttribute
(Keywords.MSD_CHILD, Keywords.MSDNS, rel.ChildKey.Table.EncodedTableName);
981
root.
SetAttribute
( Keywords.MSD_PARENTTABLENS, Keywords.MSDNS, rel.ParentKey.Table.Namespace);
984
root.
SetAttribute
( Keywords.MSD_CHILDTABLENS, Keywords.MSDNS, rel.ChildKey.Table.Namespace);
998
root.
SetAttribute
( Keywords.MSD_PARENTKEY, Keywords.MSDNS, text);
1015
root.
SetAttribute
( Keywords.MSD_CHILDKEY, Keywords.MSDNS, text);
1138
root.
SetAttribute
(Keywords.MSD_DATATYPE, Keywords.MSDNS, col.DataType.FullName);
1151
root.
SetAttribute
("ReadOnly", Keywords.MSDNS, Keywords.TRUE);
1154
root.
SetAttribute
("Expression", Keywords.MSDNS, col.Expression);
1157
root.
SetAttribute
("AutoIncrement", Keywords.MSDNS, Keywords.TRUE);
1161
root.
SetAttribute
("AutoIncrementSeed", Keywords.MSDNS, col.AutoIncrementSeed.ToString(CultureInfo.InvariantCulture));
1164
root.
SetAttribute
("AutoIncrementStep", Keywords.MSDNS, col.AutoIncrementStep.ToString(CultureInfo.InvariantCulture));
1167
root.
SetAttribute
("Caption", Keywords.MSDNS, col.Caption);
1170
root.
SetAttribute
("Prefix", Keywords.MSDNS, col.Prefix);
1173
root.
SetAttribute
("DateTimeMode", Keywords.MSDNS, col.DateTimeMode.ToString());
1231
root.
SetAttribute
(Keywords.MSD_ALLOWDBNULL, Keywords.MSDNS, Keywords.FALSE);
1235
root.
SetAttribute
(Keywords.MSD_DEFAULTVALUE, Keywords.MSDNS, (bool)(col.DefaultValue)? Keywords.TRUE : Keywords.FALSE);
1239
root.
SetAttribute
(Keywords.MSD_DEFAULTVALUE, Keywords.MSDNS, col.ConvertObjectToXml(col.DefaultValue));
1248
root.
SetAttribute
(Keywords.MSD_DEFAULTVALUE, Keywords.MSDNS, (bool)(col.DefaultValue)? Keywords.TRUE : Keywords.FALSE);
1251
root.
SetAttribute
(Keywords.MSD_DEFAULTVALUE, Keywords.MSDNS, col.ConvertObjectToXml(col.DefaultValue));
1269
root.
SetAttribute
( Keywords.TARGETNAMESPACE, Keywords.MSDNS, col.Namespace);
1304
root.
SetAttribute
(Keywords.MSD_ORDINAL,Keywords.MSDNS, col.Ordinal.ToString(CultureInfo.InvariantCulture));
1479
root.
SetAttribute
( Keywords.TARGETNAMESPACE, Keywords.MSDNS, table.Namespace);
1518
root.
SetAttribute
(Keywords.MSD_CASESENSITIVE, Keywords.MSDNS, table.CaseSensitive.ToString(CultureInfo.InvariantCulture));
1521
root.
SetAttribute
(Keywords.MSD_LOCALE, Keywords.MSDNS, table.Locale.ToString());
1603
root.
SetAttribute
(Keywords.XSD_NILLABLE, String.Empty, Keywords.TRUE);
1607
sc.
SetAttribute
(Keywords.MSD_DEFAULTVALUE, Keywords.MSDNS, colTxt.ConvertObjectToXml(colTxt.DefaultValue));
1610
sc.
SetAttribute
(Keywords.MSD_COLUMNNAME, Keywords.MSDNS, colTxt.ColumnName);
1611
sc.
SetAttribute
(Keywords.MSD_ORDINAL, Keywords.MSDNS, colTxt.Ordinal.ToString(CultureInfo.InvariantCulture));
1731
constraint.
SetAttribute
( Keywords.MSD_TABLENS, Keywords.MSDNS, table.Namespace);
1736
constraint.
SetAttribute
(Keywords.MSD_CONSTRAINTNAME, Keywords.MSDNS, unique.ConstraintName);
1748
constraint.
SetAttribute
(Keywords.MSD_PRIMARYKEY, Keywords.MSDNS, Keywords.TRUE);
1803
constraint.
SetAttribute
( Keywords.MSD_TABLENS, Keywords.MSDNS, table.Namespace);
1843
constraint.
SetAttribute
(Keywords.MSD_TABLENS, Keywords.MSDNS, foreign.Table.Namespace);
1853
constraint.
SetAttribute
(Keywords.MSD_CONSTRAINTNAME, Keywords.MSDNS, foreign.ConstraintName);
1856
constraint.
SetAttribute
(Keywords.MSD_CONSTRAINTONLY , Keywords.MSDNS, Keywords.TRUE );
1859
constraint.
SetAttribute
(Keywords.MSD_ISNESTED, Keywords.MSDNS, Keywords.TRUE);
1863
constraint.
SetAttribute
( Keywords.MSD_RELATIONNAME , Keywords.MSDNS, XmlConvert.EncodeLocalName( rel.RelationName ));
1873
constraint.
SetAttribute
(Keywords.MSD_ACCEPTREJECTRULE, Keywords.MSDNS,
1877
constraint.
SetAttribute
( Keywords.MSD_UPDATERULE, Keywords.MSDNS, TranslateRule(foreign.UpdateRule) );
1880
constraint.
SetAttribute
( Keywords.MSD_DELETERULE, Keywords.MSDNS, TranslateRule(foreign.DeleteRule) );
1938
root.
SetAttribute
(Keywords.MSD_DATATYPE, Keywords.MSDNS, result);
fx\src\data\System\NewXml\XmlDataDocument.cs (2)
619
node.
SetAttribute
( col.EncodedColumnName, col.Namespace, col.ConvertObjectToXml( value ) );
1348
rowElement.
SetAttribute
( col.EncodedColumnName, col.Namespace, col.ConvertObjectToXml( value ) );
System.ServiceModel (6)
System\ServiceModel\Channels\PrivacyNoticeBindingElement.cs (1)
96
assertion.
SetAttribute
(PrivacyNoticePolicyStrings.PrivacyNoticeVersionAttributeName, PrivacyNoticePolicyStrings.PrivacyNoticeNamespace, XmlConvert.ToString(settings.Version));
System\ServiceModel\Security\WSSecurityPolicy.cs (5)
1905
result.
SetAttribute
(OptionalName, exporter.PolicyVersion.Namespace, TrueName);
1964
tokenAssertion.
SetAttribute
(IncludeTokenName, this.WsspNamespaceUri, AlwaysToInitiatorUri);
1967
tokenAssertion.
SetAttribute
(IncludeTokenName, this.WsspNamespaceUri, AlwaysToRecipientUri);
1970
tokenAssertion.
SetAttribute
(IncludeTokenName, this.WsspNamespaceUri, NeverUri);
1973
tokenAssertion.
SetAttribute
(IncludeTokenName, this.WsspNamespaceUri, OnceUri);
System.Web.Services (7)
System\Web\Services\Protocols\SoapUnknownHeader.cs (7)
36
element.
SetAttribute
(Soap.Attribute.MustUnderstand, Soap12.Namespace, "1");
41
element.
SetAttribute
(Soap12.Attribute.Role, Soap12.Namespace, actor);
49
element.
SetAttribute
(Soap.Attribute.MustUnderstand, Soap.Namespace, "1");
54
element.
SetAttribute
(Soap.Attribute.Actor, Soap.Namespace, actor);
98
element.
SetAttribute
(Soap.Attribute.MustUnderstand, Soap.Namespace, "1");
125
element.
SetAttribute
(Soap.Attribute.Actor, Soap.Namespace, value);
155
element.
SetAttribute
(Soap12.Attribute.Relay, Soap12.Namespace, "1");