Language

WebResourceAttribute(String, String) コンストラクター

定義

指定した Web リソースとリソース コンテンツ タイプを使用して、 WebResourceAttribute クラスの新しいインスタンスを初期化します。

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)

パラメーター

webResource
String

Web リソースの名前。

contentType
String

"image/gif"や"text/javascript"などのリソースの種類。

例外

webResource が null または空の文字列 ("") です。

-又は-

contentType が null または空の文字列 ("") です。

適用対象