WebResourceAttribute(String, String) Konstruktor

Definíció

Inicializálja az osztály új példányát a WebResourceAttribute megadott webes erőforrás- és erőforrás-tartalomtípussal.

public:
 WebResourceAttribute(System::String ^ webResource, System::String ^ contentType);
public WebResourceAttribute(string webResource, string contentType);
new System.Web.UI.WebResourceAttribute : string * string -> System.Web.UI.WebResourceAttribute
Public Sub New (webResource As String, contentType As String)

Paraméterek

webResource
String

A webes erőforrás neve.

contentType
String

Az erőforrás típusa, például "image/gif" vagy "text/javascript".

Kivételek

webResource üres null sztring ("").

-vagy-

contentType üres null sztring ("").

A következőre érvényes: