Back to product page
- Introduction
- License agreement
- Classes
- Enumerations
- Exceptions
- WeOnlyDo.Server.WebServer
- WeOnlyDo.Server.WebHeader
- WeOnlyDo.Server.WebHeaders
- WeOnlyDo.Server.WebRequest
- WeOnlyDo.Server.WebResponse
- WeOnlyDo.Server.WebSessions
- WeOnlyDo.Server.WebSessionVar
- WeOnlyDo.Server.WebSessionVars
- WeOnlyDo.Server.WebUpload
- WeOnlyDo.Server.WebUploads
- WeOnlyDo.Server.WebUser
- WeOnlyDo.Server.WebUsers
- How to get support?
DocumentRoot property
Holds root path for documents.
Type
StringSyntax
- C#
- VB.NET
String DocumentRoot {get; set; };
Property DocumentRoot As String
Remarks
When this property is set, wodWebServer.NET will automatically generate response to client's request. If file with requested name is located - it is loaded through Response.Stream, and Response.StatusCode is set to 200 (OK). If page is not found, Response.StatusCode is set to 404 (not found). You will still have a chance to interfere with this automation from within RequestDone event so you can change response properties.If you don't specify this property, wodWebServer.NET will leave up creating response up to you, completely. When client connects, this property is copied to User.DocumentRoot property to allow setting it on 'per user' basis.