Click or drag to resize

XmlExtensionMethodsWriteValueAsElement Method

Writes the value as element, with the type as attribute. If value is null, no type is written and the value is empty

Namespace:  SD.LLBLGen.Pro.ORMSupportClasses
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.10.0.0 (5.10.0)
Syntax
public static void WriteValueAsElement(
	this XmlWriter writer,
	string elementName,
	Object value
)

Parameters

writer
Type: System.XmlXmlWriter
The writer.
elementName
Type: SystemString
Name of the element.
value
Type: SystemObject
The value.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type XmlWriter. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Remarks
Will write the value as plain value, and won't include it in CData blocks.
See Also