TemplateControl.CreateResourceBasedLiteralControl 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
存取儲存在資源中的字串。 此 CreateResourceBasedLiteralControl(Int32, Int32, Boolean) 方法並非設計用於程式碼內。
protected:
System::Web::UI::LiteralControl ^ CreateResourceBasedLiteralControl(int offset, int size, bool fAsciiOnly);
protected System.Web.UI.LiteralControl CreateResourceBasedLiteralControl(int offset, int size, bool fAsciiOnly);
member this.CreateResourceBasedLiteralControl : int * int * bool -> System.Web.UI.LiteralControl
Protected Function CreateResourceBasedLiteralControl (offset As Integer, size As Integer, fAsciiOnly As Boolean) As LiteralControl
參數
- offset
- Int32
資源中字串起始的偏移量。
- size
- Int32
字串的大小(以位元組為單位)。
- fAsciiOnly
- Boolean
一個布林值,指示資源中的字串是否僅包含 7 位元 ASCII 字元。
傳回
A LiteralControl 代表資源中的字串。
備註
此 CreateResourceBasedLiteralControl 方法用於存取儲存在資源中的字串,並非用於程式碼內部使用。