XmlDictionaryReader.ReadString XmlDictionaryReader.ReadString XmlDictionaryReader.ReadString XmlDictionaryReader.ReadString Method

定义

将当前节点的内容读入字符串。Reads the contents of the current node into a string.

重载

ReadString(Int32) ReadString(Int32) ReadString(Int32) ReadString(Int32)

将当前节点的内容读入具有最大给定长度的字符串。Reads the contents of the current node into a string with a given maximum length.

ReadString() ReadString() ReadString() ReadString()

将当前节点的内容读入字符串。Reads the contents of the current node into a string.

ReadString(Int32) ReadString(Int32) ReadString(Int32) ReadString(Int32)

将当前节点的内容读入具有最大给定长度的字符串。Reads the contents of the current node into a string with a given maximum length.

protected:
 System::String ^ ReadString(int maxStringContentLength);
protected string ReadString (int maxStringContentLength);
override this.ReadString : int -> string
Protected Function ReadString (maxStringContentLength As Integer) As String

参数

maxStringContentLength
Int32 Int32 Int32 Int32

允许的最大字符串长度。Maximum allowed string length.

返回

包含当前节点的内容的字符串。A string that contains the contents of the current node.

异常

无法读取当前节点的内容。Unable to read the contents of the current node.

超出允许的最大字符串长度。Maximum allowed string length exceeded.

ReadString() ReadString() ReadString() ReadString()

将当前节点的内容读入字符串。Reads the contents of the current node into a string.

public:
 override System::String ^ ReadString();
public override string ReadString ();
override this.ReadString : unit -> string
Public Overrides Function ReadString () As String

返回

包含当前节点的内容的字符串。A string that contains the contents of the current node.

异常

无法读取当前节点的内容。Unable to read the contents of the current node.

超出允许的最大字符串长度。Maximum allowed string length exceeded.

适用于