使用英语阅读

通过


TemplateControl.WriteUTF8ResourceString 方法

定义

HtmlTextWriter 控件写入资源字符串。 WriteUTF8ResourceString(HtmlTextWriter, Int32, Int32, Boolean) 方法是由生成的类使用的,并且不应从代码中使用。

protected void WriteUTF8ResourceString(System.Web.UI.HtmlTextWriter output, int offset, int size, bool fAsciiOnly);

参数

output
HtmlTextWriter

要写入的控件。

offset
Int32

value 内的起始位置。

size
Int32

要使用的 value 内的字符数。

fAsciiOnly
Boolean

true 表示跳过重编码;否则为 false

例外

正在访问无效的数据;offsetsize 小于零。

- 或 -

offsetsize 的和大于资源大小。

适用于

产品 版本
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1