Click or drag to resize

HttpServerDocumentRootPath Property

Gets or sets the path to the document folder of the server.

Namespace:  Sfs2X.WebSocketSharp.Server
Assembly:  SmartFox2X (in SmartFox2X.dll) Version: 1.8.0.0 (1.8.0)
Syntax
C#
public string DocumentRootPath { get; set; }

Property Value

Type: String

A String that represents a path to the folder from which to find the requested file.

The default value is "./Public".

Exceptions
ExceptionCondition
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.

Remarks

'/' 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.

See Also