HttpServerDocumentRootPath Property |
Namespace: Sfs2X.WebSocketSharp.Server
public string DocumentRootPath { get; set; }
A String that represents a path to the folder from which to find the requested file.
The default value is "./Public".
Exception | Condition |
---|---|
ArgumentNullException | The value specified for a set operation is . |
ArgumentException | The value specified for a set operation is an empty string. -or- The value specified for a set operation is an invalid path string. -or- The value specified for a set operation is an absolute root. |
'/' or '\' is trimmed from the end of the value if any.
The set operation does nothing if the server has already started or it is shutting down.