ScriptResourceAttribute 建構函式

定義

初始化 ScriptResourceAttribute 類別的新執行個體。

多載

名稱 Description
ScriptResourceAttribute(String)

初始化 ScriptResourceAttribute 類別的新執行個體。

ScriptResourceAttribute(String, String, String)

初始化 ScriptResourceAttribute 類別的新執行個體。

ScriptResourceAttribute(String)

初始化 ScriptResourceAttribute 類別的新執行個體。

public:
 ScriptResourceAttribute(System::String ^ scriptName);
public ScriptResourceAttribute(string scriptName);
new System.Web.UI.ScriptResourceAttribute : string -> System.Web.UI.ScriptResourceAttribute
Public Sub New (scriptName As String)

參數

scriptName
String

那是劇本庫的名稱。

適用於

ScriptResourceAttribute(String, String, String)

初始化 ScriptResourceAttribute 類別的新執行個體。

public:
 ScriptResourceAttribute(System::String ^ scriptName, System::String ^ scriptResourceName, System::String ^ typeName);
public:
 ScriptResourceAttribute(System::String ^ scriptName, System::String ^ stringResourceName, System::String ^ stringResourceClientTypeName);
public ScriptResourceAttribute(string scriptName, string scriptResourceName, string typeName);
public ScriptResourceAttribute(string scriptName, string stringResourceName, string stringResourceClientTypeName);
new System.Web.UI.ScriptResourceAttribute : string * string * string -> System.Web.UI.ScriptResourceAttribute
new System.Web.UI.ScriptResourceAttribute : string * string * string -> System.Web.UI.ScriptResourceAttribute
Public Sub New (scriptName As String, scriptResourceName As String, typeName As String)
Public Sub New (scriptName As String, stringResourceName As String, stringResourceClientTypeName As String)

參數

scriptName
String

那是劇本庫的名稱。

scriptResourceNamestringResourceName
String

腳本函式庫的資源檔案名稱。

typeNamestringResourceClientTypeName
String

資源檔案中要建立的值類型名稱。

例外狀況

scriptNamescriptResourceNametypeName , 或 null 是空字串(“”)。

備註

ScriptResourceAttribute此方法通常是在應用程式的 AssemblyInfo 檔案中,使用 Assembly ScriptResourceAttribute 屬性作為組合屬性來呼叫。

適用於