XmlDictionaryReader.ReadContentAsString XmlDictionaryReader.ReadContentAsString XmlDictionaryReader.ReadContentAsString XmlDictionaryReader.ReadContentAsString Method

定义

将节点内容转换为字符串。Converts a node's content to a string.

重载

ReadContentAsString() ReadContentAsString() ReadContentAsString() ReadContentAsString()

将节点内容转换为字符串。Converts a node's content to a string.

ReadContentAsString(Int32) ReadContentAsString(Int32) ReadContentAsString(Int32) ReadContentAsString(Int32)

将节点内容转换为字符串。Converts a node's content to a string.

ReadContentAsString(String[], Int32) ReadContentAsString(String[], Int32) ReadContentAsString(String[], Int32) ReadContentAsString(String[], Int32)

将节点内容转换为字符串。Converts a node's content to a string.

ReadContentAsString(XmlDictionaryString[], Int32) ReadContentAsString(XmlDictionaryString[], Int32) ReadContentAsString(XmlDictionaryString[], Int32) ReadContentAsString(XmlDictionaryString[], Int32)

将节点内容转换为字符串。Converts a node's content to a string.

ReadContentAsString() ReadContentAsString() ReadContentAsString() ReadContentAsString()

将节点内容转换为字符串。Converts a node's content to a string.

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

返回

以字符串表示的节点内容。The node content in a string representation.

注解

此读取操作返回的字符串受 MaxStringContentLength 配额的限制The string returned by this read operation is limited by the MaxStringContentLength quota

ReadContentAsString(Int32) ReadContentAsString(Int32) ReadContentAsString(Int32) ReadContentAsString(Int32)

将节点内容转换为字符串。Converts a node's content to a string.

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

参数

maxStringContentLength
Int32 Int32 Int32 Int32

最大字符串长度。The maximum string length.

返回

以字符串表示的节点内容。Node content in string representation.

注解

此读取操作返回的字符串受 MaxStringContentLength 配额的限制。The string returned by this read operation is limited by the MaxStringContentLength quota.

ReadContentAsString(String[], Int32) ReadContentAsString(String[], Int32) ReadContentAsString(String[], Int32) ReadContentAsString(String[], Int32)

将节点内容转换为字符串。Converts a node's content to a string.

public:
 virtual System::String ^ ReadContentAsString(cli::array <System::String ^> ^ strings, [Runtime::InteropServices::Out] int % index);
public virtual string ReadContentAsString (string[] strings, out int index);
override this.ReadContentAsString : string[] *  -> string
Public Overridable Function ReadContentAsString (strings As String(), ByRef index As Integer) As String

参数

strings
String[]

要依据其匹配内容的字符串数组。The array of strings to match content against.

index
Int32 Int32 Int32 Int32

与内容匹配的 strings 中项的索引。The index of the entry in strings that matches the content.

返回

以字符串表示的节点内容。The node content in a string representation.

异常

stringsnullstrings is null.

-or-

strings 中的某一项为 nullAn entry in strings is null.

ReadContentAsString(XmlDictionaryString[], Int32) ReadContentAsString(XmlDictionaryString[], Int32) ReadContentAsString(XmlDictionaryString[], Int32) ReadContentAsString(XmlDictionaryString[], Int32)

将节点内容转换为字符串。Converts a node's content to a string.

public:
 virtual System::String ^ ReadContentAsString(cli::array <System::Xml::XmlDictionaryString ^> ^ strings, [Runtime::InteropServices::Out] int % index);
public virtual string ReadContentAsString (System.Xml.XmlDictionaryString[] strings, out int index);
override this.ReadContentAsString : System.Xml.XmlDictionaryString[] *  -> string
Public Overridable Function ReadContentAsString (strings As XmlDictionaryString(), ByRef index As Integer) As String

参数

strings
XmlDictionaryString[]

要依据其匹配内容的 XmlDictionaryString 对象数组。The array of XmlDictionaryString objects to match content against.

index
Int32 Int32 Int32 Int32

与内容匹配的 strings 中项的索引。The index of the entry in strings that matches the content.

返回

以字符串表示的节点内容。The node content in a string representation.

异常

stringsnullstrings is null.

- 或 --or-

strings 中的某一项为 nullAn entry in strings is null.

适用于