ScriptResourceAttribute Konstruktorok

Definíció

Inicializálja a ScriptResourceAttribute osztály új példányát.

Túlterhelések

Name Description
ScriptResourceAttribute(String)

Inicializálja a ScriptResourceAttribute osztály új példányát.

ScriptResourceAttribute(String, String, String)

Inicializálja a ScriptResourceAttribute osztály új példányát.

ScriptResourceAttribute(String)

Inicializálja a ScriptResourceAttribute osztály új példányát.

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)

Paraméterek

scriptName
String

A szkripttár neve.

A következőre érvényes:

ScriptResourceAttribute(String, String, String)

Inicializálja a ScriptResourceAttribute osztály új példányát.

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)

Paraméterek

scriptName
String

A szkripttár neve.

scriptResourceNamestringResourceName
String

A szkripttár erőforrásfájljának neve.

typeNamestringResourceClientTypeName
String

Az erőforrásfájl értékeihez létrehozandó típus neve.

Kivételek

scriptName, vagy scriptResourceNametypeName üres null sztring ("").

Megjegyzések

A ScriptResourceAttribute metódust általában úgy hívjuk meg, hogy az ScriptResourceAttribute attribútumot szerelvényattribútumként használja az alkalmazás AssemblyInfo fájljában.

A következőre érvényes: