WebResourceAttribute(String, String) Konstruktor

Definicja

Inicjuje WebResourceAttribute nowe wystąpienie klasy przy użyciu określonego zasobu internetowego i typu zawartości zasobu.

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

Nazwa zasobu internetowego.

contentType
String

Typ zasobu, taki jak "image/gif" lub "text/javascript".

Wyjątki

webResource jest null lub pusty ciąg ("").

— lub —

contentType jest null lub pusty ciąg ("").

Dotyczy