相关文章推荐
彷徨的机器人  ·  stringvar转变成str ...·  2 周前    · 
留胡子的汤圆  ·  SharePoint 搜索 REST ...·  1 周前    · 
没有腹肌的开水瓶  ·  Exception in thread ...·  1 周前    · 
知识渊博的斑马  ·  pytho 读取 outlook ...·  4 月前    · 
孤独的咖啡  ·  Guide to Spring ...·  7 月前    · 
个性的山楂  ·  ZeroMQ接口函数之 ...·  1 年前    · 
失恋的酱肘子  ·  javascript - ...·  1 年前    · 

This browser is no longer supported.

Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.

Download Microsoft Edge More info about Internet Explorer and Microsoft Edge
public:
 property System::String ^ ContentType { System::String ^ get(); };
public string ContentType { get; }
member this.ContentType : string
Public ReadOnly Property ContentType As String

Property Value

Examples

The following code example shows how to loop through all the files in the uploaded file collection and take action when the MIME type of a file is US-ASCII .

HttpFileCollection MyFileCollection = Request.Files; for (int Loop1 = 0; Loop1 < MyFileCollection.Count; Loop1++) if (MyFileCollection[Loop1].ContentType == "video/mpeg") //... Dim Loop1 As Integer Dim MyFileCollection As HttpFileCollection = Request.Files For Loop1 = 0 To MyFileCollection.Count - 1 If MyFileCollection(Loop1).ContentType = "video/mpeg" Then End If Next Loop1