System.Text.Encoding.Extensions 表示 Unicode 字符的 ASCII 字符编码。 1 初始化 类的新实例。 计算对从指定的字符指针开始的一组字符进行编码时产生的字节数。 对指定字符进行编码后生成的字节数。 指向第一个要编码的字符的指针。 要编码的字符的数目。 为 null。 小于零。- 或 -产生的字节数超过了作为一个整数返回时允许的最大字节数。 发生回退(请参见.NET Framework 中的字符编码以获得完整的解释)-和-将 设置为 。 1 计算对指定字符数组中的一组字符进行编码时产生的字节数。 对指定字符进行编码后生成的字节数。 包含要编码的字符集的字符数组。 第一个要编码的字符的索引。 要编码的字符的数目。 为 null。 或 小于零。- 或 - 和 不表示 中的有效范围。- 或 -产生的字节数超过了作为一个整数返回时允许的最大字节数。 发生回退(请参见.NET Framework 中的字符编码以获得完整的解释)-和-将 设置为 。 1 计算对指定 中的字符进行编码时所产生的字节数。 对指定字符进行编码后生成的字节数。 包含要编码的字符集的 。 为 null。 产生的字节数超过了作为一个整数返回时允许的最大字节数。 发生回退(请参见.NET Framework 中的字符编码以获得完整的解释)-和-将 设置为 。 1 将从指定的字符指针开始的一组字符编码为一个字节序列,并从指定的字节指针开始存储该字节序列。 在由 指示的位置处写入的实际字节数。 指向第一个要编码的字符的指针。 要编码的字符的数目。 一个指针,指向开始写入所产生的字节序列的位置。 最多写入的字节数。 为 null。- 或 - 为 null。 或 小于零。 少于所产生的字节数。 发生回退(请参见.NET Framework 中的字符编码以获得完整的解释)-和-将 设置为 。 1 将指定字符数组中的一组字符编码到指定的字节数组中。 写入 的实际字节数。 包含要编码的字符集的字符数组。 第一个要编码的字符的索引。 要编码的字符的数目。 要包含所产生的字节序列的字节数组。 开始写入所产生的字节序列的索引位置。 为 null。- 或 - 为 null。 、 或 小于零。- 或 - 和 不表示 中的有效范围。- 或 - 不是 中的有效索引。 中从 到数组结尾没有足够的容量来容纳所产生的字节。 发生回退(请参见.NET Framework 中的字符编码以获得完整的解释)-和-将 设置为 。 1 将指定 中的一组字符编码到指定的字节数组中。 写入 的实际字节数。 包含要编码的字符集的 。 第一个要编码的字符的索引。 要编码的字符的数目。 要包含所产生的字节序列的字节数组。 开始写入所产生的字节序列的索引位置。 为 null。- 或 - 为 null。 、 或 小于零。- 或 - 和 不表示 中的有效范围。- 或 - 不是 中的有效索引。 中从 到数组结尾没有足够的容量来容纳所产生的字节。 发生回退(请参见.NET Framework 中的字符编码以获得完整的解释)-和-将 设置为 。 1 计算对一个字节序列(从指定的字节指针开始)进行解码所产生的字符数。 对指定字节序列进行解码所产生的字符数。 指向第一个要解码的字节的指针。 要解码的字节数。 为 null。 小于零。- 或 -产生的字节数超过了作为一个整数返回时允许的最大字节数。 发生回退(请参见.NET Framework 中的字符编码以获得完整的解释)-和-将 设置为 。 1 计算对指定字节数组中的一个字节序列进行解码所产生的字符数。 对指定字节序列进行解码所产生的字符数。 包含要解码的字节序列的字节数组。 第一个要解码的字节的索引。 要解码的字节数。 为 null。 或 小于零。- 或 - 和 不表示 中的有效范围。- 或 -产生的字节数超过了作为一个整数返回时允许的最大字节数。 发生回退(请参见.NET Framework 中的字符编码以获得完整的解释)-和-将 设置为 。 1 将从指定的字节指针开始的一个字节序列解码为一组字符,并从指定的字符指针开始存储这组字符。 在由 指示的位置处写入的实际字符数。 指向第一个要解码的字节的指针。 要解码的字节数。 一个指针,指向开始写入所产生的字符集的位置。 要写入的最大字符数。 为 null。- 或 - 为 null。 或 小于零。 少于所产生的字符数。 发生回退(请参见.NET Framework 中的字符编码以获得完整的解释)-和-将 设置为 。 1 将指定字节数组中的一个字节序列解码为指定的字符数组。 写入 的实际字符数。 包含要解码的字节序列的字节数组。 第一个要解码的字节的索引。 要解码的字节数。 要用于包含所产生的字符集的字符数组。 开始写入所产生的字符集的索引位置。 为 null。- 或 - 为 null。 、 或 小于零。- 或 - 和 不表示 中的有效范围。- 或 - 不是 中的有效索引。 中从 到数组结尾没有足够容量来容纳所产生的字符。 发生回退(请参见.NET Framework 中的字符编码以获得完整的解释)-和-将 设置为 。 1 获取可以将 ASCII 编码的字节序列转换为 Unicode 字符序列的解码器。 用于将 ASCII 编码的字节序列转换为 Unicode 字符序列。 1 获取可将 Unicode 字符序列转换为 ASCII 编码的字节序列的编码器。 一个 ,它将一个 Unicode 字符序列转换为一个 ASCII 编码的字节序列。 1 计算对指定数目的字符进行编码时产生的最大字节数。 对指定数目的字符进行编码所产生的最大字节数。 要编码的字符的数目。 小于零。- 或 -产生的字节数超过了作为一个整数返回时允许的最大字节数。 1 计算对指定数目的字节进行解码时产生的最大字符数。 对指定数目的字节进行解码时所产生的最大字符数。 要解码的字节数。 小于零。- 或 -产生的字节数超过了作为一个整数返回时允许的最大字节数。 1 将字节数组中某个范围的字节解码为一个字符串。 包含指定字节序列解码结果的 。 包含要解码的字节序列的字节数组。 第一个要解码的字节的索引。 要解码的字节数。 为 null。 或 小于零。- 或 - 和 不表示 中的有效范围。 发生回退(请参见.NET Framework 中的字符编码以获得完整的解释)-和-将 设置为 。 1 获取一个可以指示当前编码是否使用单字节码位的值。 此属性恒为 true。 2 表示 Unicode 字符的 UTF-16 编码。 1 初始化 类的新实例。 初始化 类的新实例。参数指定是否使用 Big-Endian 字节顺序以及 方法是否返回 Unicode 字节顺序标记。 如果为 true,则使用 Big-Endian 字节顺序(从最高有效字节开始);如果为 false,则使用 Little-Endian 字节顺序(从最低有效字节开始)。 如果为 true,则指定 方法返回 Unicode 字节顺序标记;否则为 false。有关详细信息,请参阅备注部分。 初始化 类的新实例。参数指定是否使用 Big-Endian 字节顺序、是否提供 Unicode 字节顺序标记以及当检测到无效编码时是否引发异常。 如果为 true,则使用 Big-Endian 字节顺序(从最高有效字节开始);如果为 false,则使用 Little-Endian 字节顺序(从最低有效字节开始)。 如果为 true,则指定 方法返回 Unicode 字节顺序标记;否则为 false。有关详细信息,请参阅备注部分。 如果为 true,则指定在检测到无效的编码时应当引发异常;否则为 false。 确定指定的 是否等于当前的 对象。 如果 是 的一个实例并且等于当前对象,则为 true;否则,为 false。 要与当前对象进行比较的对象。 2 计算对指定字符数组中的一组字符进行编码时产生的字节数。 对指定字符进行编码后生成的字节数。 包含要编码的字符集的字符数组。 第一个要编码的字符的索引。 要编码的字符的数目。 is null (Nothing). or is less than zero.-or- and do not denote a valid range in .-or- The resulting number of bytes is greater than the maximum number that can be returned as an integer. Error detection is enabled, and contains an invalid sequence of characters. A fallback occurred (see .NET Framework 中的字符编码 for fuller explanation)-and- is set to . 1 计算对指定字符串中的字符进行编码时所产生的字节数。 对指定字符进行编码后生成的字节数。 包含要编码的字符集的字符串。 is null . The resulting number of bytes is greater than the maximum number that can be returned as an integer. Error detection is enabled, and contains an invalid sequence of characters. A fallback occurred (see .NET Framework 中的字符编码 for fuller explanation)-and- is set to . 1 将指定字符数组中的一组字符编码到指定的字节数组中。 写入 的实际字节数。 包含要编码的字符集的字符数组。 第一个要编码的字符的索引。 要编码的字符的数目。 要包含所产生的字节序列的字节数组。 要开始写入所产生的字节序列的索引位置。 is null (Nothing).-or- is null (Nothing). or or is less than zero.-or- and do not denote a valid range in .-or- is not a valid index in . Error detection is enabled, and contains an invalid sequence of characters.-or- does not have enough capacity from to the end of the array to accommodate the resulting bytes. A fallback occurred (see .NET Framework 中的字符编码 for fuller explanation)-and- is set to . 1 将指定 中的一组字符编码到指定的字节数组中。 写入 的实际字节数。 包含要编码的字符集的字符串。 第一个要编码的字符的索引。 要编码的字符的数目。 要包含所产生的字节序列的字节数组。 要开始写入所产生的字节序列的索引位置。 is null .-or- is null (Nothing). or or is less than zero.-or- and do not denote a valid range in .-or- is not a valid index in . Error detection is enabled, and contains an invalid sequence of characters.-or- does not have enough capacity from to the end of the array to accommodate the resulting bytes. A fallback occurred (see .NET Framework 中的字符编码 for fuller explanation)-and- is set to . 1 计算对指定字节数组中的一个字节序列进行解码所产生的字符数。 对指定字节序列进行解码所产生的字符数。 包含要解码的字节序列的字节数组。 第一个要解码的字节的索引。 要解码的字节数。 is null (Nothing). or is less than zero.-or- and do not denote a valid range in .-or- The resulting number of bytes is greater than the maximum number that can be returned as an integer. Error detection is enabled, and contains an invalid sequence of bytes. A fallback occurred (see .NET Framework 中的字符编码 for fuller explanation)-and- is set to . 1 将指定字节数组中的一个字节序列解码为指定的字符数组。 写入 的实际字符数。 包含要解码的字节序列的字节数组。 第一个要解码的字节的索引。 要解码的字节数。 要用于包含所产生的字符集的字符数组。 开始写入所产生的字符集的索引位置。 is null (Nothing).-or- is null (Nothing). or or is less than zero.-or- and do not denote a valid range in .-or- is not a valid index in . Error detection is enabled, and contains an invalid sequence of bytes.-or- does not have enough capacity from to the end of the array to accommodate the resulting characters. A fallback occurred (see .NET Framework 中的字符编码 for fuller explanation)-and- is set to . 1 获取可以将 UTF-16 编码的字节序列转换为 Unicode 字符序列的解码器。 一个 ,用于将 UTF-16 编码的字节序列转换为 Unicode 字符序列。 1 获取可将 Unicode 字符序列转换为 UTF-16 编码的字节序列的编码器。 将 Unicode 字符序列转换为 UTF-16 编码字节序列的 对象。 1 返回当前实例的哈希代码。 当前 对象的哈希代码。 1 计算对指定数目的字符进行编码时产生的最大字节数。 对指定数目的字符进行编码所产生的最大字节数。 要编码的字符的数目。 is less than zero.-or- The resulting number of bytes is greater than the maximum number that can be returned as an integer. A fallback occurred (see .NET Framework 中的字符编码 for fuller explanation)-and- is set to . 1 计算对指定数目的字节进行解码时产生的最大字符数。 对指定数目的字节进行解码时所产生的最大字符数。 要解码的字节数。 is less than zero.-or- The resulting number of bytes is greater than the maximum number that can be returned as an integer. A fallback occurred (see .NET Framework 中的字符编码 for fuller explanation)-and- is set to . 1 如果此实例的构造函数请求一个字节顺序标记,则将返回用 UTF-16 格式编码的 Unicode 字节顺序标记。 一个包含 Unicode 字节顺序标记的字节数组(如果 对象配置为提供一个这样的字节数组)。否则,此方法返回一个零长度的字节数组。 1 将字节数组中某个范围的字节解码为一个字符串。 包含指定字节序列解码结果的 对象。 包含要解码的字节序列的字节数组。 第一个要解码的字节的索引。 要解码的字节数。 is null (Nothing). or is less than zero.-or- and do not denote a valid range in . Error detection is enabled, and contains an invalid sequence of bytes. A fallback occurred (see .NET Framework 中的字符编码 for fuller explanation)-and- is set to . 1 表示 Unicode 字符的 UTF-32 编码。 1 初始化 类的新实例。 初始化 类的新实例。参数指定是否使用 Big-Endian 字节顺序以及 方法是否返回 Unicode Unicode 字节顺序标记。 如果为 true,则使用 Big-Endian 字节顺序(从最高有效字节开始);如果为 false,则使用 Little-Endian 字节顺序(从最低有效字节开始)。 如果为 true,则指定提供 Unicode 字节顺序标记;否则为 false。 初始化 类的新实例。参数指定是否使用 Big-Endian 字节顺序、是否提供 Unicode 字节顺序标记以及当检测到无效编码时是否引发异常。 如果为 true,则使用 Big-Endian 字节顺序(从最高有效字节开始);如果为 false,则使用 Little-Endian 字节顺序(从最低有效字节开始)。 如果为 true,则指定提供 Unicode 字节顺序标记;否则为 false。 如果为 true,则指定在检测到无效的编码时应当引发异常;否则为 false。 确定指定的 是否等于当前的 对象。 如果 是 的一个实例并且等于当前对象,则为 true;否则,为 false。 要与当前对象进行比较的 。 2 计算对从指定的字符指针开始的一组字符进行编码时产生的字节数。 对指定字符进行编码后生成的字节数。 指向第一个要编码的字符的指针。 要编码的字符的数目。 is null. is less than zero.-or- The resulting number of bytes is greater than the maximum number that can be returned as an integer. Error detection is enabled, and contains an invalid sequence of characters. A fallback occurred (see .NET Framework 中的字符编码 for complete explanation)-and- is set to . 1 计算对指定字符数组中的一组字符进行编码时产生的字节数。 对指定字符进行编码后生成的字节数。 包含要编码的字符集的字符数组。 第一个要编码的字符的索引。 要编码的字符的数目。 is null. or is less than zero.-or- and do not denote a valid range in .-or- The resulting number of bytes is greater than the maximum number that can be returned as an integer. Error detection is enabled, and contains an invalid sequence of characters. A fallback occurred (see .NET Framework 中的字符编码 for complete explanation)-and- is set to . 1 计算对指定 中的字符进行编码时所产生的字节数。 对指定字符进行编码后生成的字节数。 包含要编码的字符集的 。 is null. The resulting number of bytes is greater than the maximum number that can be returned as an integer. Error detection is enabled, and contains an invalid sequence of characters. A fallback occurred (see .NET Framework 中的字符编码 for complete explanation)-and- is set to . 1 将从指定的字符指针开始的一组字符编码为一个字节序列,并从指定的字节指针开始存储该字节序列。 在由 参数指示的位置处写入的实际字节数。 指向第一个要编码的字符的指针。 要编码的字符的数目。 一个指针,指向开始写入所产生的字节序列的位置。 最多写入的字节数。 is null.-or- is null. or is less than zero. Error detection is enabled, and contains an invalid sequence of characters.-or- is less than the resulting number of bytes. A fallback occurred (see .NET Framework 中的字符编码 for complete explanation)-and- is set to . 1 将指定字符数组中的一组字符编码到指定的字节数组中。 写入 的实际字节数。 包含要编码的字符集的字符数组。 第一个要编码的字符的索引。 要编码的字符的数目。 要包含所产生的字节序列的字节数组。 要开始写入所产生的字节序列的索引位置。 is null.-or- is null. or or is less than zero.-or- and do not denote a valid range in .-or- is not a valid index in . Error detection is enabled, and contains an invalid sequence of characters.-or- does not have enough capacity from to the end of the array to accommodate the resulting bytes. A fallback occurred (see .NET Framework 中的字符编码 for complete explanation)-and- is set to . 1 将指定 中的一组字符编码到指定的字节数组中。 写入 的实际字节数。 包含要编码的字符集的 。 第一个要编码的字符的索引。 要编码的字符的数目。 要包含所产生的字节序列的字节数组。 要开始写入所产生的字节序列的索引位置。 is null.-or- is null. or or is less than zero.-or- and do not denote a valid range in .-or- is not a valid index in . Error detection is enabled, and contains an invalid sequence of characters.-or- does not have enough capacity from to the end of the array to accommodate the resulting bytes. A fallback occurred (see .NET Framework 中的字符编码 for complete explanation)-and- is set to . 1 计算对一个字节序列(从指定的字节指针开始)进行解码所产生的字符数。 对指定字节序列进行解码所产生的字符数。 指向第一个要解码的字节的指针。 要解码的字节数。 is null. is less than zero.-or- The resulting number of bytes is greater than the maximum number that can be returned as an integer. Error detection is enabled, and contains an invalid sequence of bytes. A fallback occurred (see .NET Framework 中的字符编码 for complete explanation)-and- is set to . 1 计算对指定字节数组中的一个字节序列进行解码所产生的字符数。 对指定字节序列进行解码所产生的字符数。 包含要解码的字节序列的字节数组。 第一个要解码的字节的索引。 要解码的字节数。 is null. or is less than zero.-or- and do not denote a valid range in .-or- The resulting number of bytes is greater than the maximum number that can be returned as an integer. Error detection is enabled, and contains an invalid sequence of bytes. A fallback occurred (see .NET Framework 中的字符编码 for complete explanation)-and- is set to . 1 将从指定的字节指针开始的一个字节序列解码为一组字符,并从指定的字符指针开始存储这组字符。 在由 指示的位置处写入的实际字符数。 指向第一个要解码的字节的指针。 要解码的字节数。 一个指针,指向开始写入所产生的字符集的位置。 要写入的最大字符数。 is null.-or- is null. or is less than zero. Error detection is enabled, and contains an invalid sequence of bytes.-or- is less than the resulting number of characters. A fallback occurred (see .NET Framework 中的字符编码 for complete explanation)-and- is set to . 1 将指定字节数组中的一个字节序列解码为指定的字符数组。 写入 的实际字符数。 包含要解码的字节序列的字节数组。 第一个要解码的字节的索引。 要解码的字节数。 要用于包含所产生的字符集的字符数组。 开始写入所产生的字符集的索引位置。 is null.-or- is null. or or is less than zero.-or- and do not denote a valid range in .-or- is not a valid index in . Error detection is enabled, and contains an invalid sequence of bytes.-or- does not have enough capacity from to the end of the array to accommodate the resulting characters. A fallback occurred (see .NET Framework 中的字符编码 for complete explanation)-and- is set to . 1 获取可以将 UTF-32 编码的字节序列转换为 Unicode 字符序列的解码器。 一个 ,用于将 UTF-32 编码的字节序列转换为 Unicode 字符序列。 1 获取可将 Unicode 字符序列转换为 UTF-32 编码的字节序列的编码器。 一个 ,用于将 Unicode 字符序列转换为 UTF-32 编码的字节序列。 1 返回当前实例的哈希代码。 当前 对象的哈希代码。 1 计算对指定数目的字符进行编码时产生的最大字节数。 对指定数目的字符进行编码所产生的最大字节数。 要编码的字符的数目。 is less than zero.-or- The resulting number of bytes is greater than the maximum number that can be returned as an integer. A fallback occurred (see .NET Framework 中的字符编码 for complete explanation)-and- is set to . 1 计算对指定数目的字节进行解码时产生的最大字符数。 对指定数目的字节进行解码时所产生的最大字符数。 要解码的字节数。 is less than zero.-or- The resulting number of bytes is greater than the maximum number that can be returned as an integer. A fallback occurred (see .NET Framework 中的字符编码 for complete explanation)-and- is set to . 1 如果此实例的构造函数请求一个字节顺序标记,则将返回用 UTF-32 格式编码的 Unicode 字节顺序标记。 如果此实例的构造函数请求一个字节顺序标记,则将返回一个包含 Unicode 字节顺序标记的字节数组。否则,此方法将返回一个长度零的字节数组。 1 将字节数组中某个范围的字节解码为一个字符串。 包含指定字节序列解码结果的 。 包含要解码的字节序列的字节数组。 第一个要解码的字节的索引。 要解码的字节数。 is null. or is less than zero.-or- and do not denote a valid range in . Error detection is enabled, and contains an invalid sequence of bytes. A fallback occurred (see .NET Framework 中的字符编码 for complete explanation)-and- is set to . 1 表示 Unicode 字符的 UTF-7 编码。 1 初始化 类的新实例。 初始化 类的新实例。一个参数指定是否允许可选字符。 如果为 true,则允许指定可选字符;否则为 false。 获取一个值,该值指示指定的对象是否等于当前的 对象。 如果 是一个 对象且等于当前的 对象,则为 true;否则为 false。 要与当前的 对象进行比较的对象。 2 计算对从指定的字符指针开始的一组字符进行编码时产生的字节数。 对指定字符进行编码后生成的字节数。 指向第一个要编码的字符的指针。 要编码的字符的数目。 是 null (在 Visual Basic .NET 中为 Nothing )。 小于零。- 或 -产生的字节数超过了作为一个整数返回时允许的最大字节数。 发生回退(请参见.NET Framework 中的字符编码以获得完整的解释)-和-将 设置为 。 1 计算对指定字符数组中的一组字符进行编码时产生的字节数。 对指定字符进行编码后生成的字节数。 包含要编码的字符集的字符数组。 第一个要编码的字符的索引。 要编码的字符的数目。 为 null (Nothing)。 或 小于零。- 或 - 和 不表示 中的有效范围。- 或 -产生的字节数超过了作为一个整数返回时允许的最大字节数。 发生回退(请参见.NET Framework 中的字符编码以获得完整的解释)-和-将 设置为 。 1 计算对指定 对象中的字符进行编码时所产生的字节数。 对指定字符进行编码后生成的字节数。 包含要编码的字符集的 对象。 为 null (Nothing)。 产生的字节数超过了作为一个整数返回时允许的最大字节数。 发生回退(请参见.NET Framework 中的字符编码以获得更详细的解释)-和-将 设置为 。 1 将从指定的字符指针开始的一组字符编码为一个字节序列,并从指定的字节指针开始存储该字节序列。 在由 指示的位置处写入的实际字节数。 指向第一个要编码的字符的指针。 要编码的字符的数目。 一个指针,指向开始写入所产生的字节序列的位置。 最多写入的字节数。 为 null (Nothing)。- 或 - 为 null (Nothing)。 或 小于零。 少于所产生的字节数。 发生回退(请参见.NET Framework 中的字符编码以获得更详细的解释)-和-将 设置为 。 1 将指定字符数组中的一组字符编码到指定的字节数组中。 写入 的实际字节数。 包含要编码的字符集的字符数组。 第一个要编码的字符的索引。 要编码的字符的数目。 要包含所产生的字节序列的字节数组。 开始写入所产生的字节序列的索引位置。 为 null (Nothing)。- 或 - 为 null (Nothing)。 、 或 小于零。- 或 - 和 不表示 中的有效范围。- 或 - 不是 中的有效索引。 中从 到数组结尾没有足够的容量来容纳所产生的字节。 发生回退(请参见.NET Framework 中的字符编码以获得更详细的解释)-和-将 设置为 。 1 将指定 中的一组字符编码到指定的字节数组中。 写入 的实际字节数。 包含要编码的字符集的 。 第一个要编码的字符的索引。 要编码的字符的数目。 要包含所产生的字节序列的字节数组。 开始写入所产生的字节序列的索引位置。 为 null (Nothing)。- 或 - 为 null (Nothing)。 、 或 小于零。- 或 - 和 不表示 中的有效范围。- 或 - 不是 中的有效索引。 中从 到数组结尾没有足够的容量来容纳所产生的字节。 发生回退(请参见.NET Framework 中的字符编码以获得更详细的解释)-和-将 设置为 。 1 计算对一个字节序列(从指定的字节指针开始)进行解码所产生的字符数。 对指定字节序列进行解码所产生的字符数。 指向第一个要解码的字节的指针。 要解码的字节数。 为 null (Nothing)。 小于零。- 或 -产生的字符数超过了作为一个整数返回时允许的最大字符数。 发生回退(请参见.NET Framework 中的字符编码以获得更详细的解释)-和-将 设置为 。 1 计算对指定字节数组中的一个字节序列进行解码所产生的字符数。 对指定字节序列进行解码所产生的字符数。 包含要解码的字节序列的字节数组。 第一个要解码的字节的索引。 要解码的字节数。 为 null (Nothing)。 或 小于零。- 或 - 和 不表示 中的有效范围。- 或 -产生的字符数超过了作为一个整数返回时允许的最大字符数。 发生回退(请参见.NET Framework 中的字符编码以获得完整的解释)-和-将 设置为 。 1 将从指定的字节指针开始的一个字节序列解码为一组字符,并从指定的字符指针开始存储这组字符。 在由 指示的位置处写入的实际字符数。 指向第一个要解码的字节的指针。 要解码的字节数。 一个指针,指向开始写入所产生的字符集的位置。 要写入的最大字符数。 为 null (Nothing)。- 或 - 为 null (Nothing)。 或 小于零。 少于所产生的字符数。 发生回退(请参见.NET Framework 中的字符编码以获得完整的解释)-和-将 设置为 。 1 将指定字节数组中的一个字节序列解码为指定的字符数组。 写入 的实际字符数。 包含要解码的字节序列的字节数组。 第一个要解码的字节的索引。 要解码的字节数。 要用于包含所产生的字符集的字符数组。 开始写入所产生的字符集的索引位置。 为 null (Nothing)。- 或 - 为 null (Nothing)。 、 或 小于零。- 或 - 和 不表示 中的有效范围。- 或 - 不是 中的有效索引。 中从 到数组结尾没有足够容量来容纳所产生的字符。 发生回退(请参见.NET Framework 中的字符编码以获得完整的解释)-和-将 设置为 。 1 获取可以将 UTF-7 编码的字节序列转换为 Unicode 字符序列的解码器。 用于将 UTF-7 编码的字节序列转换为 Unicode 字符序列。 1 获取可将 Unicode 字符序列转换为 UTF-7 编码的字节序列的编码器。 一个 ,用于将 Unicode 字符序列转换为 UTF-7 编码的字节序列。 1 返回当前 对象的哈希代码。 32 位有符号整数哈希代码。 1 计算对指定数目的字符进行编码时产生的最大字节数。 对指定数目的字符进行编码所产生的最大字节数。 要编码的字符的数目。 小于零。- 或 -产生的字节数超过了作为一个整数返回时允许的最大字节数。 发生回退(请参见.NET Framework 中的字符编码以获得完整的解释)-和-将 设置为 。 1 计算对指定数目的字节进行解码时产生的最大字符数。 对指定数目的字节进行解码时所产生的最大字符数。 要解码的字节数。 小于零。- 或 -产生的字符数超过了作为一个整数返回时允许的最大字符数。 发生回退(请参见.NET Framework 中的字符编码以获得完整的解释)-和-将 设置为 。 1 将字节数组中某个范围的字节解码为一个字符串。 包含指定字节序列解码结果的 。 包含要解码的字节序列的字节数组。 第一个要解码的字节的索引。 要解码的字节数。 为 null (Nothing)。 或 小于零。- 或 - 和 不表示 中的有效范围。 发生回退(请参见.NET Framework 中的字符编码以获得更详细的解释)-和-将 设置为 。 1 表示 Unicode 字符的 UTF-8 编码。 1 初始化 类的新实例。 初始化 类的新实例。参数指定是否提供一个 Unicode 字节顺序标记。 如果为 true,则指定 方法返回 Unicode 字节顺序标记;否则为 false。有关详细信息,请参阅备注部分。 初始化 类的新实例。参数指定是否提供 Unicode 字节顺序标记,以及是否在检测到无效的编码时引发异常。 如果为 true,则指定 方法应返回 Unicode 字节顺序标记;否则为 false。有关详细信息,请参阅备注部分。 如果为 true,则在检测到无效的编码时引发异常;否则为 false。 确定指定的对象是否等于当前 对象。 如果 是 的一个实例并且等于当前对象,则为 true;否则,为 false。 要与当前实例进行比较的对象。 2 计算对从指定的字符指针开始的一组字符进行编码时产生的字节数。 对指定字符进行编码后生成的字节数。 指向第一个要编码的字符的指针。 要编码的字符的数目。 is null. is less than zero.-or- The resulting number of bytes is greater than the maximum number that can be returned as an integer. Error detection is enabled, and contains an invalid sequence of characters. A fallback occurred (see .NET Framework 中的字符编码 for a complete explanation)-and- is set to . 1 计算对指定字符数组中的一组字符进行编码时产生的字节数。 对指定字符进行编码后生成的字节数。 包含要编码的字符集的字符数组。 第一个要编码的字符的索引。 要编码的字符的数目。 is null. or is less than zero.-or- and do not denote a valid range in .-or- The resulting number of bytes is greater than the maximum number that can be returned as an integer. Error detection is enabled, and contains an invalid sequence of characters. A fallback occurred (see .NET Framework 中的字符编码 for complete explanation)-and-The property is set to . 1 计算对指定 中的字符进行编码时所产生的字节数。 对指定字符进行编码后生成的字节数。 包含要编码的字符集的 。 is null. The resulting number of bytes is greater than the maximum number that can be returned as an integer. Error detection is enabled, and contains an invalid sequence of characters. A fallback occurred (see .NET Framework 中的字符编码 for complete explanation)-and- is set to . 1 将从指定的字符指针开始的一组字符编码为一个字节序列,并从指定的字节指针开始存储该字节序列。 在由 指示的位置处写入的实际字节数。 指向第一个要编码的字符的指针。 要编码的字符的数目。 一个指针,指向开始写入所产生的字节序列的位置。 最多写入的字节数。 is null.-or- is null. or is less than zero. Error detection is enabled, and contains an invalid sequence of characters.-or- is less than the resulting number of bytes. A fallback occurred (see .NET Framework 中的字符编码 for complete explanation)-and- is set to . 1 将指定字符数组中的一组字符编码到指定的字节数组中。 写入 的实际字节数。 包含要编码的字符集的字符数组。 第一个要编码的字符的索引。 要编码的字符的数目。 要包含所产生的字节序列的字节数组。 要开始写入所产生的字节序列的索引位置。 is null.-or- is null. or or is less than zero.-or- and do not denote a valid range in .-or- is not a valid index in . Error detection is enabled, and contains an invalid sequence of characters.-or- does not have enough capacity from to the end of the array to accommodate the resulting bytes. A fallback occurred (see .NET Framework 中的字符编码 for complete explanation)-and- is set to . 1 将指定 中的一组字符编码到指定的字节数组中。 写入 的实际字节数。 包含要编码的字符集的 。 第一个要编码的字符的索引。 要编码的字符的数目。 要包含所产生的字节序列的字节数组。 要开始写入所产生的字节序列的索引位置。 is null.-or- is null. or or is less than zero.-or- and do not denote a valid range in .-or- is not a valid index in . Error detection is enabled, and contains an invalid sequence of characters.-or- does not have enough capacity from to the end of the array to accommodate the resulting bytes. A fallback occurred (see .NET Framework 中的字符编码 for complete explanation)-and- is set to . 1 计算对一个字节序列(从指定的字节指针开始)进行解码所产生的字符数。 对指定字节序列进行解码所产生的字符数。 指向第一个要解码的字节的指针。 要解码的字节数。 is null. is less than zero.-or- The resulting number of bytes is greater than the maximum number that can be returned as an integer. Error detection is enabled, and contains an invalid sequence of bytes. A fallback occurred (see .NET Framework 中的字符编码 for complete explanation)-and- is set to . 1 计算对指定字节数组中的一个字节序列进行解码所产生的字符数。 对指定字节序列进行解码所产生的字符数。 包含要解码的字节序列的字节数组。 第一个要解码的字节的索引。 要解码的字节数。 is null. or is less than zero.-or- and do not denote a valid range in .-or- The resulting number of bytes is greater than the maximum number that can be returned as an integer. Error detection is enabled, and contains an invalid sequence of bytes. A fallback occurred (see .NET Framework 中的字符编码 for complete explanation)-and- is set to . 1 将从指定的字节指针开始的一个字节序列解码为一组字符,并从指定的字符指针开始存储这组字符。 在由 指示的位置处写入的实际字符数。 指向第一个要解码的字节的指针。 要解码的字节数。 一个指针,指向开始写入所产生的字符集的位置。 要写入的最大字符数。 is null.-or- is null. or is less than zero. Error detection is enabled, and contains an invalid sequence of bytes.-or- is less than the resulting number of characters. A fallback occurred (see .NET Framework 中的字符编码 for complete explanation)-and- is set to . 1 将指定字节数组中的一个字节序列解码为指定的字符数组。 写入 的实际字符数。 包含要解码的字节序列的字节数组。 第一个要解码的字节的索引。 要解码的字节数。 要用于包含所产生的字符集的字符数组。 开始写入所产生的字符集的索引位置。 is null.-or- is null. or or is less than zero.-or- and do not denote a valid range in .-or- is not a valid index in . Error detection is enabled, and contains an invalid sequence of bytes.-or- does not have enough capacity from to the end of the array to accommodate the resulting characters. A fallback occurred (see .NET Framework 中的字符编码 for complete explanation)-and- is set to . 1 获取可以将 UTF-8 编码的字节序列转换为 Unicode 字符序列的解码器。 可以将 UTF-8 编码的字节序列转换为 Unicode 字符序列的解码器。 1 获取可将 Unicode 字符序列转换为 UTF-8 编码的字节序列的编码器。 一个 ,用于将 Unicode 字符序列转换为 UTF-8 编码的字节序列。 1 返回当前实例的哈希代码。 当前实例的哈希代码。 1 计算对指定数目的字符进行编码时产生的最大字节数。 对指定数目的字符进行编码所产生的最大字节数。 要编码的字符的数目。 is less than zero.-or- The resulting number of bytes is greater than the maximum number that can be returned as an integer. A fallback occurred (see .NET Framework 中的字符编码 for complete explanation)-and- is set to . 1 计算对指定数目的字节进行解码时产生的最大字符数。 对指定数目的字节进行解码时所产生的最大字符数。 要解码的字节数。 is less than zero.-or- The resulting number of bytes is greater than the maximum number that can be returned as an integer. A fallback occurred (see .NET Framework 中的字符编码 for complete explanation)-and- is set to . 1 返回一个采用 UTF-8 格式编码的 Unicode 字节顺序标记(如果 编码对象配置为提供一个这样的标记)。 一个包含 Unicode 字节顺序标记的字节数组(如果 编码对象配置为提供一个这样的字节数组)。否则,此方法返回一个零长度的字节数组。 1 将字节数组中某个范围的字节解码为一个字符串。 包含指定字节序列解码结果的 。 包含要解码的字节序列的字节数组。 第一个要解码的字节的索引。 要解码的字节数。 is null. or is less than zero.-or- and do not denote a valid range in . Error detection is enabled, and contains an invalid sequence of bytes. A fallback occurred (see .NET Framework 中的字符编码 for complete explanation)-and- is set to . 1