123 references to WriteAttributeString
Microsoft.Build.Tasks.Core (1)
ManifestUtil\ManifestFormatter.cs (1)
66w.WriteAttributeString(r.Prefix, r.LocalName, r.NamespaceURI, r.Value);
Microsoft.Maui.Resizetizer (11)
GenerateSplashAndroidResources.cs (11)
120 writer.WriteAttributeString("xmlns", "android", ns: null, value: Namespace); 125 writer.WriteAttributeString("android", "gravity", Namespace, "center"); 126 writer.WriteAttributeString("android", "src", Namespace, "@drawable/" + resizer.Info.OutputName); 127 writer.WriteAttributeString("android", "mipMap", Namespace, "true"); 146 writer.WriteAttributeString("xmlns", "android", ns: null, value: Namespace); 149 writer.WriteAttributeString("android", "width", Namespace, size.Width.ToString("0", CultureInfo.InvariantCulture) + "dp"); 150 writer.WriteAttributeString("android", "height", Namespace, size.Height.ToString("0", CultureInfo.InvariantCulture) + "dp"); 151 writer.WriteAttributeString("android", "gravity", Namespace, "center"); 154 writer.WriteAttributeString("android", "gravity", Namespace, "fill"); 155 writer.WriteAttributeString("android", "src", Namespace, "@drawable/" + resizer.Info.OutputName); 156 writer.WriteAttributeString("android", "mipMap", Namespace, "true");
PresentationFramework (13)
System\Windows\Annotations\Annotation.cs (2)
188writer.WriteAttributeString(AnnotationXmlConstants.Prefixes.XmlnsPrefix, AnnotationXmlConstants.Prefixes.CoreSchemaPrefix, null, AnnotationXmlConstants.Namespaces.CoreSchemaNamespace); 192writer.WriteAttributeString(AnnotationXmlConstants.Prefixes.XmlnsPrefix, AnnotationXmlConstants.Prefixes.BaseSchemaPrefix, null, AnnotationXmlConstants.Namespaces.BaseSchemaNamespace);
System\Windows\Annotations\AnnotationResource.cs (1)
115writer.WriteAttributeString(AnnotationXmlConstants.Prefixes.XmlnsPrefix, AnnotationXmlConstants.Prefixes.CoreSchemaPrefix, null, AnnotationXmlConstants.Namespaces.CoreSchemaNamespace);
System\Windows\Annotations\LocatorGroup.cs (1)
102writer.WriteAttributeString(AnnotationXmlConstants.Prefixes.XmlnsPrefix, AnnotationXmlConstants.Prefixes.CoreSchemaPrefix, null, AnnotationXmlConstants.Namespaces.CoreSchemaNamespace);
System\Windows\Annotations\LocatorPartList.cs (2)
159writer.WriteAttributeString(AnnotationXmlConstants.Prefixes.XmlnsPrefix, AnnotationXmlConstants.Prefixes.CoreSchemaPrefix, null, AnnotationXmlConstants.Namespaces.CoreSchemaNamespace); 164writer.WriteAttributeString(AnnotationXmlConstants.Prefixes.XmlnsPrefix, AnnotationXmlConstants.Prefixes.BaseSchemaPrefix, null, AnnotationXmlConstants.Namespaces.BaseSchemaNamespace);
System\Windows\Markup\Primitives\MarkupWriter.cs (7)
531_writer.WriteAttributeString(scope.GetPrefixOf(NamespaceCache.XamlNamespace), "Key", NamespaceCache.XamlNamespace, property.StringValue); 551_writer.WriteAttributeString(scope.GetPrefixOf(xamlUri), dependencyProperty.Name, xamlUri, property.StringValue); 568_writer.WriteAttributeString(propertyPrefix, localName, typeUri, property.StringValue); 578_writer.WriteAttributeString("xml", "lang", NamespaceCache.XmlNamespace, property.StringValue); 583_writer.WriteAttributeString(scope.GetPrefixOf(xamlUri), property.PropertyDescriptor.Name, xamlUri, property.StringValue); 624_writer.WriteAttributeString("xmlns", mapping.Prefix, NamespaceCache.XmlnsNamespace, mapping.Uri); 634_writer.WriteAttributeString("xml", "space", NamespaceCache.XmlNamespace, "preserve");
ReachFramework (5)
PrintConfig\PrintCapabilitesWriter.cs (5)
71this._writer.WriteAttributeString(PrintSchemaPrefixes.xmlns, PrintSchemaPrefixes.Framework, null, PrintSchemaNamespaces.Framework); 72this._writer.WriteAttributeString(PrintSchemaPrefixes.xmlns, PrintSchemaPrefixes.xsi, null, PrintSchemaNamespaces.xsi); 73this._writer.WriteAttributeString(PrintSchemaPrefixes.xmlns, PrintSchemaPrefixes.xsd, null, PrintSchemaNamespaces.xsd); 77this._writer.WriteAttributeString(PrintSchemaPrefixes.xmlns, this._privateQName, null, this._privateNamespace); 79this._writer.WriteAttributeString(PrintSchemaPrefixes.xmlns, PrintSchemaPrefixes.StandardKeywordSet, PrintSchemaNamespaces.xmlns, PrintSchemaNamespaces.StandardKeywordSet);
System.Data.Common (51)
System\Data\SQLTypes\SQLBinary.cs (1)
450writer.WriteAttributeString("xsi", "nil", XmlSchema.InstanceNamespace, "true");
System\Data\SQLTypes\SQLBoolean.cs (1)
500writer.WriteAttributeString("xsi", "nil", XmlSchema.InstanceNamespace, "true");
System\Data\SQLTypes\SQLByte.cs (1)
510writer.WriteAttributeString("xsi", "nil", XmlSchema.InstanceNamespace, "true");
System\Data\SQLTypes\SQLBytes.cs (1)
560writer.WriteAttributeString("xsi", "nil", XmlSchema.InstanceNamespace, "true");
System\Data\SQLTypes\SQLChars.cs (1)
513writer.WriteAttributeString("xsi", "nil", XmlSchema.InstanceNamespace, "true");
System\Data\SQLTypes\SQLDateTime.cs (1)
664writer.WriteAttributeString("xsi", "nil", XmlSchema.InstanceNamespace, "true");
System\Data\SQLTypes\SQLDecimal.cs (1)
3376writer.WriteAttributeString("xsi", "nil", XmlSchema.InstanceNamespace, "true");
System\Data\SQLTypes\SQLDouble.cs (1)
426writer.WriteAttributeString("xsi", "nil", XmlSchema.InstanceNamespace, "true");
System\Data\SQLTypes\SQLGuid.cs (1)
314writer.WriteAttributeString("xsi", "nil", XmlSchema.InstanceNamespace, "true");
System\Data\SQLTypes\SQLInt16.cs (1)
511writer.WriteAttributeString("xsi", "nil", XmlSchema.InstanceNamespace, "true");
System\Data\SQLTypes\SQLInt32.cs (1)
526writer.WriteAttributeString("xsi", "nil", XmlSchema.InstanceNamespace, "true");
System\Data\SQLTypes\SQLInt64.cs (1)
585writer.WriteAttributeString("xsi", "nil", XmlSchema.InstanceNamespace, "true");
System\Data\SQLTypes\SQLMoney.cs (1)
583writer.WriteAttributeString("xsi", "nil", XmlSchema.InstanceNamespace, "true");
System\Data\SQLTypes\SQLSingle.cs (1)
436writer.WriteAttributeString("xsi", "nil", XmlSchema.InstanceNamespace, "true");
System\Data\SQLTypes\SQLString.cs (1)
942writer.WriteAttributeString("xsi", "nil", XmlSchema.InstanceNamespace, "true");
System\Data\SQLTypes\SqlXml.cs (1)
237writer.WriteAttributeString("xsi", "nil", XmlSchema.InstanceNamespace, "true");
System\Data\xmlsaver.cs (34)
1149xw.WriteAttributeString(Keywords.MSD, Keywords.MSD_SCHEMASERIALIZATIONMODE, Keywords.MSDNS, Keywords.MSD_EXCLUDESCHEMA); 2360_xmlw.WriteAttributeString(Keywords.XMLNS, Keywords.MSD, null, Keywords.MSDNS); 2450_xmlw.WriteAttributeString(Keywords.DFF, Keywords.DIFFID, Keywords.DFFNS, row.Table.TableName + row.rowID.ToString(CultureInfo.InvariantCulture)); 2451_xmlw.WriteAttributeString(Keywords.DFF, Keywords.MSD_ERROR, Keywords.DFFNS, row.RowError); 2475_xmlw.WriteAttributeString(Keywords.DFF, Keywords.DIFFID, Keywords.DFFNS, row.Table.TableName + row.rowID.ToString(CultureInfo.InvariantCulture)); 2481_xmlw.WriteAttributeString(Keywords.DFF, Keywords.MSD_ERROR, Keywords.DFFNS, error); 2525_xmlw.WriteAttributeString(Keywords.DFF, Keywords.DIFFID, Keywords.DFFNS, rowIDString); 2528_xmlw.WriteAttributeString(Keywords.DFF, Keywords.HASERRORS, Keywords.DFFNS, Keywords.TRUE); 2531_xmlw.WriteAttributeString(Keywords.DFF, Keywords.DIFFPID, Keywords.DFFNS, parentId); 2533_xmlw.WriteAttributeString(Keywords.MSD, Keywords.ROWORDER, Keywords.MSDNS, _rowsOrder[row]!.ToString()); 2559_xmlw.WriteAttributeString(Keywords.XSI, Keywords.XSI_NIL, Keywords.XSINS, Keywords.TRUE); 2567_xmlw.WriteAttributeString(colPrefix, col.EncodedColumnName, col.Namespace, value); 2571_xmlw.WriteAttributeString(Keywords.MSD, "hidden" + col.EncodedColumnName, Keywords.MSDNS, value); 2595_xmlw.WriteAttributeString(Keywords.XML, Keywords.SPACE, Keywords.XML_XMLNS, Keywords.PRESERVE); 2609_xmlw.WriteAttributeString(Keywords.MSD, Keywords.MSD_INSTANCETYPE, Keywords.MSDNS, DataStorage.GetQualifiedName(valuesType)); 2635_xmlw.WriteAttributeString(Keywords.MSD, Keywords.MSD_INSTANCETYPE, Keywords.MSDNS, valuesType.FullName); 2639_xmlw.WriteAttributeString(Keywords.MSD, Keywords.MSD_INSTANCETYPE, Keywords.MSDNS, Keywords.TYPEINSTANCE); 2644_xmlw.WriteAttributeString(Keywords.XSI, Keywords.TYPE, Keywords.XSINS, xsdTypeName); 2645_xmlw.WriteAttributeString(Keywords.XSD_PREFIX, Keywords.XMLNS, Keywords.XSDNS, xsdTypeName); 2882_xmlw.WriteAttributeString(Keywords.XMLNS, Keywords.XSI, Keywords.XSD_XMLNS_NS, Keywords.XSINS); 2951_xmlw.WriteAttributeString(Keywords.DFF, Keywords.DIFFID, Keywords.DFFNS, row.Table.TableName + row.rowID.ToString(CultureInfo.InvariantCulture)); 2953_xmlw.WriteAttributeString(Keywords.MSD, Keywords.ROWORDER, Keywords.MSDNS, _rowsOrder![row]!.ToString()); 2957_xmlw.WriteAttributeString(Keywords.DFF, Keywords.HASCHANGES, Keywords.DFFNS, Keywords.INSERTED); 2961_xmlw.WriteAttributeString(Keywords.DFF, Keywords.HASCHANGES, Keywords.DFFNS, Keywords.MODIFIED); 2966_xmlw.WriteAttributeString(Keywords.DFF, Keywords.HASERRORS, Keywords.DFFNS, Keywords.TRUE); 2981_xmlw.WriteAttributeString(colPrefix, col.EncodedColumnName, col.Namespace, col.ConvertObjectToXml(value)); 2995_xmlw.WriteAttributeString(Keywords.MSD, "hidden" + col.EncodedColumnName, Keywords.MSDNS, col.ConvertObjectToXml(value)); 3009_xmlw.WriteAttributeString(Keywords.XSI, Keywords.XSI_NIL, Keywords.XSINS, Keywords.TRUE); 3031_xmlw.WriteAttributeString(Keywords.XML, Keywords.SPACE, Keywords.XML_XMLNS, Keywords.PRESERVE); 3043_xmlw.WriteAttributeString(Keywords.MSD, Keywords.MSD_INSTANCETYPE, Keywords.MSDNS, DataStorage.GetQualifiedName(valuesType)); 3067_xmlw.WriteAttributeString(Keywords.MSD, Keywords.MSD_INSTANCETYPE, Keywords.MSDNS, valuesType.FullName); 3071_xmlw.WriteAttributeString(Keywords.MSD, Keywords.MSD_INSTANCETYPE, Keywords.MSDNS, Keywords.TYPEINSTANCE); 3076_xmlw.WriteAttributeString(Keywords.XSI, Keywords.TYPE, Keywords.XSINS, xsdTypeName); 3077_xmlw.WriteAttributeString(Keywords.XSD_PREFIX, Keywords.XMLNS, Keywords.XSDNS, xsdTypeName);
System\Xml\XmlBoundElement.cs (1)
289w.WriteAttributeString("xmlns", "xsi", "http://www.w3.org/2000/xmlns/", Keywords.XSINS);
System.IO.Packaging (3)
System\IO\Packaging\PartBasedPackageProperties.cs (3)
748_xmlWriter.WriteAttributeString(PackageXmlStringTable.GetXmlString(PackageXmlEnum.XmlNamespacePrefix), 754_xmlWriter.WriteAttributeString(PackageXmlStringTable.GetXmlString(PackageXmlEnum.XmlNamespacePrefix), 759_xmlWriter.WriteAttributeString(PackageXmlStringTable.GetXmlString(PackageXmlEnum.XmlNamespacePrefix),
System.Private.DataContractSerialization (8)
System\Runtime\Serialization\Json\ByteArrayHelperWithString.cs (2)
18writer.WriteAttributeString(string.Empty, JsonGlobals.typeString, string.Empty, JsonGlobals.arrayString); 22writer.WriteAttributeString(string.Empty, JsonGlobals.typeString, string.Empty, JsonGlobals.numberString);
System\Runtime\Serialization\XmlWriterDelegator.cs (3)
79writer.WriteAttributeString("xmlns", string.Empty, null, ns); 91writer.WriteAttributeString("xmlns", prefix, null, ns); 106writer.WriteAttributeString("xmlns", prefix, null, ns.Value);
System\Xml\XmlDictionaryWriter.cs (3)
118WriteAttributeString("xmlns", prefix, null, namespaceUri); 128WriteAttributeString("xml", localName, null, value); 857WriteAttributeString("xmlns", prefix, null, namespaceUri);
System.Private.Xml (14)
System\Xml\Core\XmlEventCache.cs (1)
221writer.WriteAttributeString("xmlns", page[idxEvent].String1!, XmlReservedNs.NsXmlNs, page[idxEvent].String2);
System\Xml\Core\XmlWriter.cs (2)
601WriteAttributeString(string.Empty, "xmlns", XmlReservedNs.NsXmlNs, ns); 605WriteAttributeString("xmlns", prefix, XmlReservedNs.NsXmlNs, ns);
System\Xml\Serialization\XmlSerializationWriter.cs (3)
967_w.WriteAttributeString(prefix, localName, ns, value); 977_w.WriteAttributeString(prefix, localName.Substring(colon + 1), ns, value); 1030_w.WriteAttributeString(prefix, localName, null, value);
System\Xml\XPath\XPathNavigator.cs (4)
2056writer.WriteAttributeString("", "xmlns", xmlnsUri, reader.Value); 2061writer.WriteAttributeString("xmlns", reader.LocalName, xmlnsUri, reader.Value); 2117writer.WriteAttributeString("", "xmlns", xmlnsUri, reader.Value); 2122writer.WriteAttributeString("xmlns", reader.LocalName, xmlnsUri, reader.Value);
System\Xml\Xsl\Runtime\XmlRawWriterWrapper.cs (2)
227_wrapped.WriteAttributeString(string.Empty, "xmlns", XmlReservedNs.NsXmlNs, ns); 229_wrapped.WriteAttributeString("xmlns", prefix, XmlReservedNs.NsXmlNs, ns);
System\Xml\Xsl\XsltOld\NavigatorOutput.cs (1)
51_wr.WriteAttributeString(attrInfo.Prefix, attrInfo.LocalName, attrInfo.NamespaceURI, attrInfo.Value);
System\Xml\Xsl\XsltOld\WriterOutput.cs (1)
96_writer.WriteAttributeString(attribute.Prefix, attribute.LocalName, attribute.NamespaceURI, attribute.Value);
System.Private.Xml.Linq (3)
System\Xml\Linq\XAttribute.cs (1)
218w.WriteAttributeString(GetPrefixOfNamespace(name.Namespace), name.LocalName, name.NamespaceName, value);
System\Xml\Linq\XLinq.cs (2)
384_writer.WriteAttributeString(GetPrefixOfNamespace(ns, false), localName, namespaceName.Length == 0 && localName == "xmlns" ? XNamespace.xmlnsPrefixNamespace : namespaceName, a.Value); 553_writer.WriteAttributeString(GetPrefixOfNamespace(ns, false), localName, namespaceName.Length == 0 && localName == "xmlns" ? XNamespace.xmlnsPrefixNamespace : namespaceName, a.Value);
System.ServiceModel.Syndication (11)
System\ServiceModel\Syndication\Atom10FeedFormatter.cs (4)
465writer.WriteAttributeString("xml", "base", XmlNs, FeedUtils.GetUriString(baseUriToWrite)); 1118writer.WriteAttributeString("xml", "lang", XmlNs, feed.Language); 1122writer.WriteAttributeString("xml", "base", XmlNs, FeedUtils.GetUriString(feed.BaseUri)); 1169dictWriter.WriteAttributeString("xml", "base", XmlNs, FeedUtils.GetUriString(baseUriToWrite));
System\ServiceModel\Syndication\AtomPub10ServiceDocumentFormatter.cs (2)
344writer.WriteAttributeString("xml", "base", Atom10FeedFormatter.XmlNs, FeedUtils.GetUriString(baseUri)); 349writer.WriteAttributeString("xml", nameof(lang), Atom10FeedFormatter.XmlNs, lang);
System\ServiceModel\Syndication\Rss20FeedFormatter.cs (5)
810writer.WriteAttributeString("xml", "base", Atom10FeedFormatter.XmlNs, FeedUtils.GetUriString(baseUriToWrite)); 842writer.WriteAttributeString("xmlns", Atom10Constants.Atom10Prefix, null, Atom10Constants.Atom10Namespace); 848writer.WriteAttributeString("xml", "base", Atom10FeedFormatter.XmlNs, FeedUtils.GetUriString(Feed.BaseUri)); 1001writer.WriteAttributeString("xml", "base", Atom10FeedFormatter.XmlNs, FeedUtils.GetUriString(baseUriToWrite)); 1172writer.WriteAttributeString("xml", "base", Atom10FeedFormatter.XmlNs, FeedUtils.GetUriString(baseUriToWrite));
System.Windows.Forms (1)
System\Resources\ResXResourceWriter.cs (1)
448Writer.WriteAttributeString("xml", "space", null, "preserve");
System.Xaml (2)
System\Xaml\XamlXmlWriter.cs (2)
336writer.output.WriteAttributeString("xml", "space", "http://www.w3.org/XML/1998/namespace", "preserve"); 530output.WriteAttributeString("xmlns", pair.Key, null, pair.Value);