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