共用方式為


XmlUtility.SelectNextElement 方法 (XmlTextReader, String)

不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。

命名空間:  Microsoft.SqlServer.Management.Sdk.Sfc
組件:  Microsoft.SqlServer.Management.Sdk.Sfc (在 Microsoft.SqlServer.Management.Sdk.Sfc.dll 中)

語法

'宣告
Public Shared Function SelectNextElement ( _
    reader As XmlTextReader, _
    strName As String _
) As Boolean
'用途
Dim reader As XmlTextReader 
Dim strName As String 
Dim returnValue As Boolean 

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

參數

  • strName
    型別:System.String
    A string that represents the string name.

傳回值

型別:System.Boolean
true to select the next element by name; otherwise, false.

請參閱

參考

XmlUtility 類別

SelectNextElement 多載

Microsoft.SqlServer.Management.Sdk.Sfc 命名空間