Uređivanje

Dijeli putem


XmlSerializationWriter.WriteAttribute Method

Definition

Instructs an XmlNode object to write an XML attribute that has no namespace specified for its name.

Overloads

WriteAttribute(String, Byte[])

This API supports the product infrastructure and is not intended to be used directly from your code.

Instructs an XmlWriter object to write an XML attribute that has no namespace specified for its name.

WriteAttribute(String, String)

This API supports the product infrastructure and is not intended to be used directly from your code.

Instructs the XmlWriter to write an XML attribute that has no namespace specified for its name.

WriteAttribute(String, String, Byte[])

This API supports the product infrastructure and is not intended to be used directly from your code.

Instructs an XmlWriter object to write an XML attribute.

WriteAttribute(String, String, String)

This API supports the product infrastructure and is not intended to be used directly from your code.

Writes an XML attribute.

WriteAttribute(String, String, String, String)

This API supports the product infrastructure and is not intended to be used directly from your code.

Writes an XML attribute where the namespace prefix is provided manually.

WriteAttribute(String, Byte[])

Source:
XmlSerializationWriter.cs
Source:
XmlSerializationWriter.cs
Source:
XmlSerializationWriter.cs

Instructs an XmlWriter object to write an XML attribute that has no namespace specified for its name.

This API supports the product infrastructure and is not intended to be used directly from your code.

protected:
 void WriteAttribute(System::String ^ localName, cli::array <System::Byte> ^ value);
protected void WriteAttribute (string localName, byte[]? value);
protected void WriteAttribute (string localName, byte[] value);
member this.WriteAttribute : string * byte[] -> unit
Protected Sub WriteAttribute (localName As String, value As Byte())

Parameters

localName
String

The local name of the XML attribute.

value
Byte[]

The value of the XML attribute as a byte array.

Remarks

The protected members of XmlSerializationWriter are intended for use only by derived classes that are used internally within the .NET Framework XML serialization infrastructure.

Applies to

WriteAttribute(String, String)

Source:
XmlSerializationWriter.cs
Source:
XmlSerializationWriter.cs
Source:
XmlSerializationWriter.cs

Instructs the XmlWriter to write an XML attribute that has no namespace specified for its name.

This API supports the product infrastructure and is not intended to be used directly from your code.

protected:
 void WriteAttribute(System::String ^ localName, System::String ^ value);
protected void WriteAttribute (string localName, string? value);
protected void WriteAttribute (string localName, string value);
member this.WriteAttribute : string * string -> unit
Protected Sub WriteAttribute (localName As String, value As String)

Parameters

localName
String

The local name of the XML attribute.

value
String

The value of the XML attribute as a string.

Remarks

The protected members of XmlSerializationWriter are intended for use only by derived classes that are used internally within the .NET Framework XML serialization infrastructure.

Applies to

WriteAttribute(String, String, Byte[])

Source:
XmlSerializationWriter.cs
Source:
XmlSerializationWriter.cs
Source:
XmlSerializationWriter.cs

Instructs an XmlWriter object to write an XML attribute.

This API supports the product infrastructure and is not intended to be used directly from your code.

protected:
 void WriteAttribute(System::String ^ localName, System::String ^ ns, cli::array <System::Byte> ^ value);
protected void WriteAttribute (string localName, string ns, byte[]? value);
protected void WriteAttribute (string localName, string ns, byte[] value);
member this.WriteAttribute : string * string * byte[] -> unit
Protected Sub WriteAttribute (localName As String, ns As String, value As Byte())

Parameters

localName
String

The local name of the XML attribute.

ns
String

The namespace of the XML attribute.

value
Byte[]

The value of the XML attribute as a byte array.

Remarks

The protected members of XmlSerializationWriter are intended for use only by derived classes that are used internally within the .NET Framework XML serialization infrastructure.

Applies to

WriteAttribute(String, String, String)

Source:
XmlSerializationWriter.cs
Source:
XmlSerializationWriter.cs
Source:
XmlSerializationWriter.cs

Writes an XML attribute.

This API supports the product infrastructure and is not intended to be used directly from your code.

protected:
 void WriteAttribute(System::String ^ localName, System::String ^ ns, System::String ^ value);
protected void WriteAttribute (string localName, string? ns, string? value);
protected void WriteAttribute (string localName, string ns, string value);
member this.WriteAttribute : string * string * string -> unit
Protected Sub WriteAttribute (localName As String, ns As String, value As String)

Parameters

localName
String

The local name of the XML attribute.

ns
String

The namespace of the XML attribute.

value
String

The value of the XML attribute as a string.

Remarks

The protected members of XmlSerializationWriter are intended for use only by derived classes that are used internally within the .NET Framework XML serialization infrastructure.

Applies to

WriteAttribute(String, String, String, String)

Source:
XmlSerializationWriter.cs
Source:
XmlSerializationWriter.cs
Source:
XmlSerializationWriter.cs

Writes an XML attribute where the namespace prefix is provided manually.

This API supports the product infrastructure and is not intended to be used directly from your code.

protected:
 void WriteAttribute(System::String ^ prefix, System::String ^ localName, System::String ^ ns, System::String ^ value);
protected void WriteAttribute (string? prefix, string localName, string? ns, string? value);
protected void WriteAttribute (string prefix, string localName, string ns, string value);
member this.WriteAttribute : string * string * string * string -> unit
Protected Sub WriteAttribute (prefix As String, localName As String, ns As String, value As String)

Parameters

prefix
String

The namespace prefix to write.

localName
String

The local name of the XML attribute.

ns
String

The namespace represented by the prefix.

value
String

The value of the XML attribute as a string.

Remarks

The protected members of XmlSerializationWriter are intended for use only by derived classes that are used internally within the .NET Framework XML serialization infrastructure.

Applies to