WebResourceAttribute(String, String) 생성자

정의

지정된 웹 리소스 및 리소스 콘텐츠 형식을 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

웹 리소스의 이름입니다.

contentType
String

리소스 유형(예: "image/gif" 또는 "text/javascript".

예외

webResource 가거나 빈 문자열("")입니다 null .

-또는-

contentType 가거나 빈 문자열("")입니다 null .

적용 대상