共用方式為


ScriptResourceMapping.AddDefinition 方法

定義

ScriptResourceDefinition 物件新增至 ScriptResourceMapping 物件。

多載

AddDefinition(String, ScriptResourceDefinition)

ScriptResourceDefinition 物件新增至 ScriptResourceMapping 物件。

AddDefinition(String, Assembly, ScriptResourceDefinition)

ScriptResourceDefinition 物件新增至 ScriptResourceMapping 物件。

AddDefinition(String, ScriptResourceDefinition)

ScriptResourceDefinition 物件新增至 ScriptResourceMapping 物件。

public:
 void AddDefinition(System::String ^ name, System::Web::UI::ScriptResourceDefinition ^ definition);
public void AddDefinition (string name, System.Web.UI.ScriptResourceDefinition definition);
member this.AddDefinition : string * System.Web.UI.ScriptResourceDefinition -> unit
Public Sub AddDefinition (name As String, definition As ScriptResourceDefinition)

參數

name
String

指令碼資源的名稱。

definition
ScriptResourceDefinition

ScriptResourceDefinition 物件,指定指令碼資源的位置支援。

適用於

AddDefinition(String, Assembly, ScriptResourceDefinition)

ScriptResourceDefinition 物件新增至 ScriptResourceMapping 物件。

public:
 void AddDefinition(System::String ^ name, System::Reflection::Assembly ^ assembly, System::Web::UI::ScriptResourceDefinition ^ definition);
public void AddDefinition (string name, System.Reflection.Assembly assembly, System.Web.UI.ScriptResourceDefinition definition);
member this.AddDefinition : string * System.Reflection.Assembly * System.Web.UI.ScriptResourceDefinition -> unit
Public Sub AddDefinition (name As String, assembly As Assembly, definition As ScriptResourceDefinition)

參數

name
String

指令碼資源的名稱。

assembly
Assembly

包含指令碼資源的 Assembly 物件。

definition
ScriptResourceDefinition

ScriptResourceDefinition 物件,指定指令碼資源的位置支援。

適用於