WebResourceAttribute(String, String) Konstruktor

Definice

Inicializuje novou instanci WebResourceAttribute třídy se zadaným webovým prostředkem a typem obsahu prostředku.

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)

Parametry

webResource
String

Název webového prostředku.

contentType
String

Typ prostředku, například "image/gif" nebo "text/javascript".

Výjimky

webResource je null nebo prázdný řetězec ("").

-nebo-

contentType je null nebo prázdný řetězec ("").

Platí pro