Share via


ExpressionNode.ReadElementWithCheck Method

Reads a named serialized element using the XML Reader and returns the value.

Namespace:  Microsoft.SqlServer.Management.Dmf
Assembly:  Microsoft.SqlServer.Dmf (in Microsoft.SqlServer.Dmf.dll)

Syntax

'Declaration
Protected Shared Function ReadElementWithCheck ( _
    xr As XmlReader, _
    name As String _
) As String
'Usage
Dim xr As XmlReader
Dim name As String
Dim returnValue As String

returnValue = ExpressionNode.ReadElementWithCheck(xr, _
    name)
protected static string ReadElementWithCheck(
    XmlReader xr,
    string name
)
protected:
static String^ ReadElementWithCheck(
    XmlReader^ xr, 
    String^ name
)
static member ReadElementWithCheck : 
        xr:XmlReader * 
        name:string -> string 
protected static function ReadElementWithCheck(
    xr : XmlReader, 
    name : String
) : String

Parameters

Return Value

Type: System.String
A String value that contains the value with the specified name.

Remarks

This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.