ערוך

שתף באמצעות


XmlDictionaryWriter.WriteValue Method

Definition

Writes a single simple-typed value.

Overloads

WriteValue(Guid)

Writes a Guid value.

WriteValue(TimeSpan)

Writes a TimeSpan value.

WriteValue(IStreamProvider)

Writes a value from an IStreamProvider.

WriteValue(UniqueId)

Writes a Unique Id value.

WriteValue(XmlDictionaryString)

Writes a XmlDictionaryString value.

WriteValue(Guid)

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

Writes a Guid value.

public:
 virtual void WriteValue(Guid value);
public virtual void WriteValue (Guid value);
override this.WriteValue : Guid -> unit
Public Overridable Sub WriteValue (value As Guid)

Parameters

value
Guid

The Guid value to write.

Applies to

WriteValue(TimeSpan)

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

Writes a TimeSpan value.

public:
 virtual void WriteValue(TimeSpan value);
public virtual void WriteValue (TimeSpan value);
override this.WriteValue : TimeSpan -> unit
Public Overridable Sub WriteValue (value As TimeSpan)

Parameters

value
TimeSpan

The TimeSpan value to write.

Applies to

WriteValue(IStreamProvider)

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

Writes a value from an IStreamProvider.

public:
 virtual void WriteValue(System::Xml::IStreamProvider ^ value);
public virtual void WriteValue (System.Xml.IStreamProvider value);
override this.WriteValue : System.Xml.IStreamProvider -> unit
Public Overridable Sub WriteValue (value As IStreamProvider)

Parameters

value
IStreamProvider

The IStreamProvider value to write.

Exceptions

value is null.

value returns a null stream object.

An XmlDictionaryWriter method was called before a previous asynchronous operation finished. In this case, InvalidOperationException is thrown with the message "An asynchronous operation is already in progress."

Remarks

The contents of the stream provided by the IStreamProvider are written as Base64 data, unless this method is overridden in a derived class.

For the asynchronous version of this method, see WriteValueAsync.

Applies to

WriteValue(UniqueId)

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

Writes a Unique Id value.

public:
 virtual void WriteValue(System::Xml::UniqueId ^ value);
public virtual void WriteValue (System.Xml.UniqueId value);
override this.WriteValue : System.Xml.UniqueId -> unit
Public Overridable Sub WriteValue (value As UniqueId)

Parameters

value
UniqueId

The Unique Id value to write.

Exceptions

value is null.

Applies to

WriteValue(XmlDictionaryString)

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

Writes a XmlDictionaryString value.

public:
 virtual void WriteValue(System::Xml::XmlDictionaryString ^ value);
public virtual void WriteValue (System.Xml.XmlDictionaryString value);
public virtual void WriteValue (System.Xml.XmlDictionaryString? value);
override this.WriteValue : System.Xml.XmlDictionaryString -> unit
Public Overridable Sub WriteValue (value As XmlDictionaryString)

Parameters

Applies to