Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Initializes a new instance of the FileResult class.
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Syntax
'Declaration
Protected Sub New ( _
contentType As String _
)
protected FileResult(
string contentType
)
protected:
FileResult(
String^ contentType
)
Parameters
- contentType
Type: System.String
The type of the content.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentException | The contentType parameter is null reference (Nothing in Visual Basic) or empty. |