XmlDictionaryWriter.WriteValue XmlDictionaryWriter.WriteValue XmlDictionaryWriter.WriteValue XmlDictionaryWriter.WriteValue Method

Definition

Writes a single simple-typed value.

Overloads

WriteValue(Guid) WriteValue(Guid) WriteValue(Guid) WriteValue(Guid)

Writes a Guid value.

WriteValue(TimeSpan) WriteValue(TimeSpan) WriteValue(TimeSpan) WriteValue(TimeSpan)

Writes a TimeSpan value.

WriteValue(IStreamProvider) WriteValue(IStreamProvider) WriteValue(IStreamProvider) WriteValue(IStreamProvider)

Writes a value from an IStreamProvider.

WriteValue(UniqueId) WriteValue(UniqueId) WriteValue(UniqueId) WriteValue(UniqueId)

Writes a Unique Id value.

WriteValue(XmlDictionaryString) WriteValue(XmlDictionaryString) WriteValue(XmlDictionaryString) WriteValue(XmlDictionaryString)

Writes a XmlDictionaryString value.

WriteValue(Guid) WriteValue(Guid) WriteValue(Guid) WriteValue(Guid)

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 Guid Guid Guid

The Guid value to write.

WriteValue(TimeSpan) WriteValue(TimeSpan) WriteValue(TimeSpan) WriteValue(TimeSpan)

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 TimeSpan TimeSpan TimeSpan

The TimeSpan value to write.

WriteValue(IStreamProvider) WriteValue(IStreamProvider) WriteValue(IStreamProvider) WriteValue(IStreamProvider)

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

Exceptions

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.

WriteValue(UniqueId) WriteValue(UniqueId) WriteValue(UniqueId) WriteValue(UniqueId)

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 UniqueId UniqueId UniqueId

The Unique Id value to write.

Exceptions

WriteValue(XmlDictionaryString) WriteValue(XmlDictionaryString) WriteValue(XmlDictionaryString) WriteValue(XmlDictionaryString)

Writes a 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