Share via


WriteParentElement Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Writes an object to the root element of an XML stream.

Namespace:  Ws.Services.Serialization
Assembly:  MFWsStack (in MFWsStack.dll)

Syntax

'Declaration
Protected Function WriteParentElement ( _
    writer As XmlWriter, _
    nillable As Boolean, _
    isRequired As Boolean, _
    obj As Object _
) As Boolean
protected bool WriteParentElement(
    XmlWriter writer,
    bool nillable,
    bool isRequired,
    Object obj
)
protected:
bool WriteParentElement(
    XmlWriter^ writer, 
    bool nillable, 
    bool isRequired, 
    Object^ obj
)
member WriteParentElement : 
        writer:XmlWriter * 
        nillable:bool * 
        isRequired:bool * 
        obj:Object -> bool 
protected function WriteParentElement(
    writer : XmlWriter, 
    nillable : boolean, 
    isRequired : boolean, 
    obj : Object
) : boolean

Parameters

Return Value

Type: System. . :: . .Boolean
true if obj is nullNothingnullptrunita null reference (Nothing in Visual Basic). false if isRequired is false.

.NET Framework Security

See Also

Reference

DataContractSerializer Class

Ws.Services.Serialization Namespace