XmlSerializationReader.GetArrayLength(String, String) 方法

定义

获取 XmlReader 当前定位的 SOAP 编码的数组的长度。Gets the length of the SOAP-encoded array where the XmlReader is currently positioned.

此 API 支持产品基础结构,不能在代码中直接使用。

protected:
 int GetArrayLength(System::String ^ name, System::String ^ ns);
protected int GetArrayLength (string name, string ns);
member this.GetArrayLength : string * string -> int
Protected Function GetArrayLength (name As String, ns As String) As Integer

参数

name
String

数组应具有的本地名称。The local name that the array should have.

ns
String

数组应具有的命名空间。The namespace that the array should have.

返回

Int32

SOAP 数组的长度。The length of the SOAP array.

注解

的受保护成员 XmlSerializationReader 仅供在 .NET FRAMEWORK XML 序列化基础结构内部使用的派生类使用。The protected members of XmlSerializationReader are intended for use only by derived classes that are used internally within the .NET Framework XML serialization infrastructure.

GetArrayLength方法适用于 arrayType 与 SOAP 编码一起使用的特性,并使用命名空间 "" 指定 http://schemas.xmlsoap.org/soap/encoding/The GetArrayLength method applies to the arrayType attribute that is used with SOAP encoding and specified with the namespace "http://schemas.xmlsoap.org/soap/encoding/".

适用于