StaticFileExtensions Class

 

Extension methods for the StaticFileMiddleware

Namespace:   Owin
Assembly:  Microsoft.Owin.StaticFiles (in Microsoft.Owin.StaticFiles.dll)

Inheritance Hierarchy

System.Object
  Owin.StaticFileExtensions

Syntax

public static class StaticFileExtensions
[ExtensionAttribute]
public ref class StaticFileExtensions abstract sealed 
[<AbstractClass>]
[<Sealed>]
type StaticFileExtensions = class end
<ExtensionAttribute>
Public NotInheritable Class StaticFileExtensions

Methods

Name Description
System_CAPS_pubmethodSystem_CAPS_static UseStaticFiles(IAppBuilder)

Enables static file serving for the current request path from the current directory

System_CAPS_pubmethodSystem_CAPS_static UseStaticFiles(IAppBuilder, StaticFileOptions)

Enables static file serving with the given options

System_CAPS_pubmethodSystem_CAPS_static UseStaticFiles(IAppBuilder, String)

Enables static file serving for the given request path from the directory of the same name

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Owin Namespace

Return to top