XmlDictionaryWriter.WriteValue Método

Definición

Escribe un solo valor con tipo simple.

Sobrecargas

WriteValue(Guid)

Escribe un valor Guid.

WriteValue(TimeSpan)

Escribe un valor TimeSpan.

WriteValue(IStreamProvider)

Escribe un valor de un IStreamProvider.

WriteValue(UniqueId)

Escribe un valor de identificador único.

WriteValue(XmlDictionaryString)

Escribe un valor XmlDictionaryString.

WriteValue(Guid)

Source:
XmlDictionaryWriter.cs
Source:
XmlDictionaryWriter.cs
Source:
XmlDictionaryWriter.cs

Escribe un valor Guid.

C#
public virtual void WriteValue(Guid value);

Parámetros

value
Guid

Valor Guid que se va a escribir.

Se aplica a

.NET 10 y otras versiones
Producto Versiones
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1
UWP 10.0

WriteValue(TimeSpan)

Source:
XmlDictionaryWriter.cs
Source:
XmlDictionaryWriter.cs
Source:
XmlDictionaryWriter.cs

Escribe un valor TimeSpan.

C#
public virtual void WriteValue(TimeSpan value);

Parámetros

value
TimeSpan

Valor TimeSpan que se va a escribir.

Se aplica a

.NET 10 y otras versiones
Producto Versiones
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1
UWP 10.0

WriteValue(IStreamProvider)

Source:
XmlDictionaryWriter.cs
Source:
XmlDictionaryWriter.cs
Source:
XmlDictionaryWriter.cs

Escribe un valor de un IStreamProvider.

C#
public virtual void WriteValue(System.Xml.IStreamProvider value);

Parámetros

value
IStreamProvider

Valor IStreamProvider que se va a escribir.

Excepciones

value es null.

value devuelve un objeto de secuencia null.

Se llamó un método XmlDictionaryWriter antes de que se termine una operación asincrónica anterior. En este caso, se genera InvalidOperationException con el mensaje “Ya hay una operación asincrónica en curso”.

Comentarios

El contenido de la secuencia proporcionada por IStreamProvider se escribe como datos base64, a menos que este método se invalide en una clase derivada.

Para obtener la versión asincrónica de este método, vea WriteValueAsync.

Se aplica a

.NET 10 y otras versiones
Producto Versiones
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

WriteValue(UniqueId)

Source:
XmlDictionaryWriter.cs
Source:
XmlDictionaryWriter.cs
Source:
XmlDictionaryWriter.cs

Escribe un valor de identificador único.

C#
public virtual void WriteValue(System.Xml.UniqueId value);

Parámetros

value
UniqueId

El valor de identificador único que se escribirá.

Excepciones

value es null.

Se aplica a

.NET 10 y otras versiones
Producto Versiones
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1
UWP 10.0

WriteValue(XmlDictionaryString)

Source:
XmlDictionaryWriter.cs
Source:
XmlDictionaryWriter.cs
Source:
XmlDictionaryWriter.cs

Escribe un valor XmlDictionaryString.

C#
public virtual void WriteValue(System.Xml.XmlDictionaryString value);
C#
public virtual void WriteValue(System.Xml.XmlDictionaryString? value);

Parámetros

Se aplica a

.NET 10 y otras versiones
Producto Versiones
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1
UWP 10.0