Freigeben über


XmlUtility.SelectChildrenByAttribute-Methode

Selects the children elements by attribute. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur.

Namespace:  Microsoft.SqlServer.Management.Sdk.Sfc
Assembly:  Microsoft.SqlServer.Management.Sdk.Sfc (in Microsoft.SqlServer.Management.Sdk.Sfc.dll)

Syntax

'Declaration
Public Shared Function SelectChildrenByAttribute ( _
    reader As XmlTextReader, _
    strAttribute As String, _
    strValue As String _
) As Boolean
'Usage
Dim reader As XmlTextReader 
Dim strAttribute As String 
Dim strValue As String 
Dim returnValue As Boolean 

returnValue = XmlUtility.SelectChildrenByAttribute(reader, _
    strAttribute, strValue)
public static bool SelectChildrenByAttribute(
    XmlTextReader reader,
    string strAttribute,
    string strValue
)
public:
static bool SelectChildrenByAttribute(
    XmlTextReader^ reader, 
    String^ strAttribute, 
    String^ strValue
)
static member SelectChildrenByAttribute : 
        reader:XmlTextReader * 
        strAttribute:string * 
        strValue:string -> bool
public static function SelectChildrenByAttribute(
    reader : XmlTextReader, 
    strAttribute : String, 
    strValue : String
) : boolean

Parameter

  • strAttribute
    Typ: System.String
    A string value for the Attribute.
  • strValue
    Typ: System.String
    A string that represents the Value.

Rückgabewert

Typ: System.Boolean
true if the children elements are selected by their attributes; otherwise, false.

Siehe auch

Verweis

XmlUtility Klasse

Microsoft.SqlServer.Management.Sdk.Sfc-Namespace