WebResourceAttribute(String, String) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the WebResourceAttribute class with the specified Web resource and resource content type.
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)
Parameters
- webResource
- String
The name of the of Web resource.
- contentType
- String
The type of resource, such as "image/gif"
or "text/javascript"
.
Exceptions
webResource
is null
or an empty string ("").
-or-
contentType
is null
or an empty string ("").
Applies to
Berkolaborasi dengan kami di GitHub
Sumber untuk konten ini dapat ditemukan di GitHub, yang juga dapat Anda gunakan untuk membuat dan meninjau masalah dan menarik permintaan. Untuk informasi selengkapnya, lihat panduan kontributor kami.