FileServerExtensions Class

 

Extension methods that combine all of the static file middleware components: Default files, directory browsing, send file, and static files

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

System::Object
  Owin::FileServerExtensions

[ExtensionAttribute]
public ref class FileServerExtensions abstract sealed 

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticUseFileServer(IAppBuilder^)

Enable all static file middleware (except directory browsing) for the current request path in the current directory.

System_CAPS_pubmethodSystem_CAPS_staticUseFileServer(IAppBuilder^, Boolean)

Enable all static file middleware on for the current request path in the current directory.

System_CAPS_pubmethodSystem_CAPS_staticUseFileServer(IAppBuilder^, FileServerOptions^)

Enable all static file middleware with the given options

System_CAPS_pubmethodSystem_CAPS_staticUseFileServer(IAppBuilder^, String^)

Enables all static file middleware (except directory browsing) for the given request path from the directory of the same name

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

Return to top
Show: