共用方式為


XmlUtility.IsElement 方法

Indicates whether the current entity is an element with the given name. 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。

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

語法

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

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

參數

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

傳回值

型別:System.Boolean
true if the current entity is an element with the given name; otherwise, false.

請參閱

參考

XmlUtility 類別

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