XmlUtility.SelectChildrenByAttribute 方法
Selects the children elements by attribute. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。
命名空间: Microsoft.SqlServer.Management.Sdk.Sfc
程序集: Microsoft.SqlServer.Management.Sdk.Sfc(在 Microsoft.SqlServer.Management.Sdk.Sfc.dll 中)
语法
声明
Public Shared Function SelectChildrenByAttribute ( _
reader As XmlTextReader, _
strAttribute As String, _
strValue As String _
) As Boolean
用法
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
参数
- reader
类型:System.Xml.XmlTextReader
The text reader to use.
- strAttribute
类型:System.String
A string value for the Attribute.
- strValue
类型:System.String
A string that represents the Value.
返回值
类型:System.Boolean
true if the children elements are selected by their attributes; otherwise, false.