104 references to WriteAttributeString
System.Data.Entity.Design (4)
System\Data\Entity\Design\Common\MetadataItemSerializer.cs (4)
435
_writer.
WriteAttributeString
(
645
_writer.
WriteAttributeString
(XmlConstants.UseStrongSpatialTypes, XmlConstants.AnnotationNamespace, XmlConstants.False);
678
_writer.
WriteAttributeString
(
771
_writer.
WriteAttributeString
(attributeName, xmlNamespace, property.Value.ToString());
System.Data.Services (11)
System\Data\Services\Providers\ObjectContextServiceProvider.cs (1)
1633
xmlWriter.
WriteAttributeString
(attributeName, xmlNamespace, (string)metadataProperty.Value);
System\Data\Services\Serializers\MetadataSerializer.cs (8)
341
xmlWriter.
WriteAttributeString
(
389
xmlWriter.
WriteAttributeString
(
394
xmlWriter.
WriteAttributeString
(
401
xmlWriter.
WriteAttributeString
(
409
xmlWriter.
WriteAttributeString
(
414
xmlWriter.
WriteAttributeString
(
422
xmlWriter.
WriteAttributeString
(
428
xmlWriter.
WriteAttributeString
(
System\Data\Services\Serializers\PlainXmlSerializer.cs (2)
85
writer.
WriteAttributeString
(XmlConstants.AtomNullAttributeName, XmlConstants.DataWebMetadataNamespace, XmlConstants.XmlTrueLiteral);
104
writer.
WriteAttributeString
(XmlConstants.AtomTypeAttributeName, XmlConstants.DataWebMetadataNamespace, propertyTypeName);
System.IdentityModel (61)
System\IdentityModel\EncryptedDataElement.cs (2)
176
writer.
WriteAttributeString
( XmlEncryptionConstants.Attributes.Id, null, Id );
181
writer.
WriteAttributeString
( XmlEncryptionConstants.Attributes.Type, null, Type );
System\IdentityModel\EncryptionMethodElement.cs (1)
67
writer.
WriteAttributeString
( XmlEncryptionConstants.Attributes.Algorithm, null, _algorithm );
System\IdentityModel\Metadata\MetadataSerializer.cs (25)
1978
writer.
WriteAttributeString
(Saml2MetadataConstants.Attributes.ContactType, null, contactPerson.Type.ToString().ToLowerInvariant());
2064
writer.
WriteAttributeString
(Saml2MetadataConstants.Attributes.Binding, null, (endpoint.Binding.IsAbsoluteUri ? endpoint.Binding.AbsoluteUri : endpoint.Binding.ToString()));
2071
writer.
WriteAttributeString
(Saml2MetadataConstants.Attributes.Location, null, (endpoint.Location.IsAbsoluteUri ? endpoint.Location.AbsoluteUri : endpoint.Location.ToString()));
2075
writer.
WriteAttributeString
(Saml2MetadataConstants.Attributes.ResponseLocation, null, (endpoint.ResponseLocation.IsAbsoluteUri ? endpoint.ResponseLocation.AbsoluteUri : endpoint.ResponseLocation.ToString()));
2164
writer.
WriteAttributeString
(Saml2MetadataConstants.Attributes.Id, null, entityReference);
2185
writer.
WriteAttributeString
(Saml2MetadataConstants.Attributes.EntityGroupName, null, entitiesDescriptor.Name);
2251
writer.
WriteAttributeString
(Saml2MetadataConstants.Attributes.Id, null, entityReference);
2258
writer.
WriteAttributeString
(Saml2MetadataConstants.Attributes.EntityId, null, entityDescriptor.EntityId.Id);
2262
writer.
WriteAttributeString
(WSFederationMetadataConstants.Attributes.FederationId, WSFederationMetadataConstants.Namespace, entityDescriptor.FederationId);
2352
writer.
WriteAttributeString
(Saml2MetadataConstants.Attributes.WantAuthenticationRequestsSigned, null,
2419
writer.
WriteAttributeString
(Saml2MetadataConstants.Attributes.Binding, null, (indexedEP.Binding.IsAbsoluteUri ? indexedEP.Binding.AbsoluteUri : indexedEP.Binding.ToString()));
2426
writer.
WriteAttributeString
(Saml2MetadataConstants.Attributes.Location, null, (indexedEP.Location.IsAbsoluteUri ? indexedEP.Location.AbsoluteUri : indexedEP.Location.ToString()));
2433
writer.
WriteAttributeString
(Saml2MetadataConstants.Attributes.EndpointIndex, null, indexedEP.Index.ToString(CultureInfo.InvariantCulture));
2437
writer.
WriteAttributeString
(Saml2MetadataConstants.Attributes.ResponseLocation, null, (indexedEP.ResponseLocation.IsAbsoluteUri ? indexedEP.ResponseLocation.AbsoluteUri : indexedEP.ResponseLocation.ToString()));
2442
writer.
WriteAttributeString
(Saml2MetadataConstants.Attributes.EndpointIsDefault, null, XmlConvert.ToString(indexedEP.IsDefault.Value));
2471
writer.
WriteAttributeString
(Saml2MetadataConstants.Attributes.Use, null, keyDescriptor.Use.ToString().ToLowerInvariant());
2499
writer.
WriteAttributeString
(Saml2MetadataConstants.Attributes.Algorithm, null, encryptionMethod.Algorithm.AbsoluteUri);
2767
writer.
WriteAttributeString
(Saml2MetadataConstants.Attributes.ValidUntil, null, roleDescriptor.ValidUntil.ToString("s", CultureInfo.InvariantCulture));
2773
writer.
WriteAttributeString
(Saml2MetadataConstants.Attributes.ErrorUrl, null, (roleDescriptor.ErrorUrl.IsAbsoluteUri ? roleDescriptor.ErrorUrl.AbsoluteUri : roleDescriptor.ErrorUrl.ToString()));
2789
writer.
WriteAttributeString
(Saml2MetadataConstants.Attributes.ProtocolsSupported, null, protocolsString.Trim());
2932
writer.
WriteAttributeString
(Saml2MetadataConstants.Attributes.AuthenticationRequestsSigned, null,
2938
writer.
WriteAttributeString
(Saml2MetadataConstants.Attributes.WantAssertionsSigned, null,
3057
writer.
WriteAttributeString
(Saml2MetadataConstants.Attributes.ServiceDisplayName, null, wsDescriptor.ServiceDisplayName);
3062
writer.
WriteAttributeString
(Saml2MetadataConstants.Attributes.ServiceDescription, null, wsDescriptor.ServiceDescription);
3315
writer.
WriteAttributeString
("nil", XmlSchema.InstanceNamespace, XmlConvert.ToString(true));
System\IdentityModel\Tokens\Saml2SecurityTokenHandler.cs (6)
695
writer.
WriteAttributeString
(WSC.Attributes.Nonce, WSC.Namespace, Convert.ToBase64String(nonce));
708
writer.
WriteAttributeString
(WSSE11.Attributes.TokenType, WSSE11.Namespace, SecurityTokenTypes.OasisWssSaml2TokenProfile11);
3219
writer.
WriteAttributeString
(Saml2Constants.Attributes.OriginalIssuer, ClaimType2009Namespace, data.OriginalIssuer);
3240
writer.
WriteAttributeString
("nil", XmlSchema.InstanceNamespace, XmlConvert.ToString(true));
3247
writer.
WriteAttributeString
("type", XmlSchema.InstanceNamespace, String.Concat(ProductConstants.ClaimValueTypeSerializationPrefixWithColon, xsiTypeSuffix));
5387
writer.
WriteAttributeString
("type", XmlSchema.InstanceNamespace, Saml2Constants.Types.KeyInfoConfirmationDataType);
System\IdentityModel\Tokens\SamlSecurityTokenHandler.cs (22)
1615
writer.
WriteAttributeString
(SamlConstants.AttributeNames.Namespace, null, action.Namespace);
1879
writer.
WriteAttributeString
(SamlConstants.AttributeNames.MajorVersion, null, Convert.ToString(SamlConstants.MajorVersionValue, CultureInfo.InvariantCulture));
1880
writer.
WriteAttributeString
(SamlConstants.AttributeNames.MinorVersion, null, Convert.ToString(SamlConstants.MinorVersionValue, CultureInfo.InvariantCulture));
1881
writer.
WriteAttributeString
(SamlConstants.AttributeNames.AssertionId, null, assertion.AssertionId);
1882
writer.
WriteAttributeString
(SamlConstants.AttributeNames.Issuer, null, assertion.Issuer);
1883
writer.
WriteAttributeString
(SamlConstants.AttributeNames.IssueInstant, null, assertion.IssueInstant.ToUniversalTime().ToString(DateTimeFormats.Generated, CultureInfo.InvariantCulture));
1986
writer.
WriteAttributeString
(
1995
writer.
WriteAttributeString
(
2413
writer.
WriteAttributeString
(SamlConstants.AttributeNames.NameIdentifierFormat, null, subject.NameFormat);
2417
writer.
WriteAttributeString
(SamlConstants.AttributeNames.NameIdentifierNameQualifier, null, subject.NameQualifier);
2777
writer.
WriteAttributeString
(SamlConstants.AttributeNames.AttributeName, null, attribute.Name);
2778
writer.
WriteAttributeString
(SamlConstants.AttributeNames.AttributeNamespace, null, attribute.Namespace);
2783
writer.
WriteAttributeString
(SamlConstants.AttributeNames.OriginalIssuer, ClaimType2009Namespace, SamlAttribute.OriginalIssuer);
2808
writer.
WriteAttributeString
("type", XmlSchema.InstanceNamespace, String.Concat(ProductConstants.ClaimValueTypeSerializationPrefixWithColon, xsiTypeSuffix));
2940
writer.
WriteAttributeString
(SamlConstants.AttributeNames.AuthenticationMethod, null, statement.AuthenticationMethod);
2942
writer.
WriteAttributeString
(SamlConstants.AttributeNames.AuthenticationInstant, null,
2954
writer.
WriteAttributeString
(SamlConstants.AttributeNames.SubjectLocalityIPAddress, null, statement.IPAddress);
2959
writer.
WriteAttributeString
(SamlConstants.AttributeNames.SubjectLocalityDNSAddress, null, statement.DnsAddress);
3083
writer.
WriteAttributeString
(SamlConstants.AttributeNames.Location, null, authorityBinding.Location);
3085
writer.
WriteAttributeString
(SamlConstants.AttributeNames.Binding, null, authorityBinding.Binding);
3240
writer.
WriteAttributeString
(SamlConstants.AttributeNames.Decision, null, statement.AccessDecision.ToString());
3242
writer.
WriteAttributeString
(SamlConstants.AttributeNames.Resource, null, statement.Resource);
System\IdentityModel\Tokens\SessionSecurityTokenHandler.cs (1)
790
dicWriter.
WriteAttributeString
(WSUtilityConstants.Attributes.IdAttribute, WSUtilityConstants.NamespaceURI, sessionToken.Id);
System\IdentityModel\Tokens\UserNameSecurityTokenHandler.cs (2)
201
writer.
WriteAttributeString
(
222
writer.
WriteAttributeString
(
System\IdentityModel\Tokens\X509SecurityTokenHandler.cs (2)
662
writer.
WriteAttributeString
(WSSecurityUtilityConstants.Attributes.Id, WSSecurityUtilityConstants.Namespace, x509Token.Id);
665
writer.
WriteAttributeString
(WSSecurity10Constants.Attributes.ValueType, null, WSSecurity10Constants.X509TokenType);
System.ServiceModel (13)
System\ServiceModel\Channels\ContextMessageHeader.cs (1)
165
writer.
WriteAttributeString
(ContextPropertyNameAttribute, null, pair.Key);
System\ServiceModel\Dispatcher\XmlSerializerOperationFormatter.cs (1)
265
writer.
WriteAttributeString
("encodingStyle", version.Envelope.Namespace, encoding);
System\ServiceModel\Syndication\AtomPub10CategoriesDocumentFormatter.cs (1)
250
writer.
WriteAttributeString
(Atom10Constants.Atom10Prefix, Atom10FeedFormatter.XmlNsNs, Atom10Constants.Atom10Namespace);
System\ServiceModel\Syndication\AtomPub10ServiceDocumentFormatter.cs (1)
750
writer.
WriteAttributeString
(Atom10Constants.Atom10Prefix, Atom10FeedFormatter.XmlNsNs, Atom10Constants.Atom10Namespace);
System\ServiceModel\Syndication\ExtensibleSyndicationObject.cs (1)
115
writer.
WriteAttributeString
(qname.Name, qname.Namespace, value);
System\ServiceModel\Syndication\Rss20FeedFormatter.cs (5)
1075
writer.
WriteAttributeString
(Rss20Constants.DomainTag, Rss20Constants.Rss20Namespace, category.Scheme);
1330
writer.
WriteAttributeString
(Rss20Constants.UrlTag, Rss20Constants.Rss20Namespace, FeedUtils.GetUriString(selfLink.Uri));
1440
writer.
WriteAttributeString
(Rss20Constants.UrlTag, Rss20Constants.Rss20Namespace, FeedUtils.GetUriString(link.Uri));
1444
writer.
WriteAttributeString
(Rss20Constants.TypeTag, Rss20Constants.Rss20Namespace, link.MediaType);
1448
writer.
WriteAttributeString
(Rss20Constants.LengthTag, Rss20Constants.Rss20Namespace, Convert.ToString(link.Length, CultureInfo.InvariantCulture));
System\ServiceModel\Syndication\SyndicationContent.cs (2)
100
writer.
WriteAttributeString
(Atom10Constants.TypeTag, string.Empty, this.Type);
112
writer.
WriteAttributeString
(key.Name, key.Namespace, attrValue);
System\ServiceModel\Syndication\UrlSyndicationContent.cs (1)
55
writer.
WriteAttributeString
(Atom10Constants.SourceTag, string.Empty, FeedUtils.GetUriString(this.url));
System.ServiceModel.Discovery (1)
System\ServiceModel\Discovery\SerializationUtility.cs (1)
446
writer.
WriteAttributeString
(
System.ServiceModel.Web (1)
System\ServiceModel\Dispatcher\HelpExampleGenerator.cs (1)
198
context.writer.
WriteAttributeString
(attribute.QualifiedName.Name, attribute.QualifiedName.Namespace, content);
System.Xml (13)
System\Xml\Serialization\XmlSerializationWriter.cs (13)
347
w.
WriteAttributeString
("nil", XmlSchema.InstanceNamespace, "true");
520
w.
WriteAttributeString
("nil", XmlSchema.InstanceNamespace, "true");
534
w.
WriteAttributeString
("nil", XmlSchema.InstanceNamespace, "true");
769
w.
WriteAttributeString
("ref", Soap12.Encoding, GetId(o, true));
801
w.
WriteAttributeString
("id", Soap12.Encoding, GetId(o, addToReferencesList));
847
w.
WriteAttributeString
(localName, ns, value);
889
w.
WriteAttributeString
(localName, null, value);
1123
w.
WriteAttributeString
("itemType", Soap12.Encoding, GetQualifiedName(typeName, typeNs));
1124
w.
WriteAttributeString
("arraySize", Soap12.Encoding, arrayLength.ToString(CultureInfo.InvariantCulture));
1127
w.
WriteAttributeString
("arrayType", Soap.Encoding, GetQualifiedName(typeName, typeNs) + "[" + arrayLength.ToString(CultureInfo.InvariantCulture) + "]");
1141
w.
WriteAttributeString
("itemType", Soap12.Encoding, GetQualifiedName(typeName, typeNs));
1143
w.
WriteAttributeString
("arraySize", Soap12.Encoding, arrayLength.ToString(CultureInfo.InvariantCulture));
1147
w.
WriteAttributeString
("arrayType", Soap.Encoding, GetQualifiedName(typeName, typeNs) + brackets);