Content Studio Web Content Management System
Assembly: CSServer5 (in CSServer5.dll) Version: 5.7.5016.0 (5.7.5016.0)
The caller must have either the
GlobalGroupAdmin
or the
RestartWebSite
global group right in order to successfully execute this method.
Technically, a restart is performed by writing a single byte in the Site.dat file located in the Bin subdirectory of the site.
When ASP.NET sees that a file has been touched in the Bin directory it restarts and recompiles the web site.
[This is preliminary documentation and is subject to change.]
Restarts the website.
Namespace: ContentStudio
Assembly: CSServer5 (in CSServer5.dll) Version: 5.7.5016.0 (5.7.5016.0)
Syntax
public void RestartSite( ConnectionId connectionId, SessionId sessionId, out int status, out string statusText )
Parameters
- connectionId
- Type: ContentStudioConnectionId
A value that identifies the web site - sessionId
- Type: ContentStudio.SecuritySessionId
A value that identifies the users session. This value usually originates from a call to OpenSession(ConnectionId). - status
- Type: SystemInt32
An integer indicating result of the call. Zero is success. - statusText
- Type: SystemString
The textual representation of the call result.
Content Studio permissions
Remarks
Note |
---|
This is the backwards compatible implementation of this method new code should use the RestartSite(ConnectionId, SessionId) overloaded version of this method. This implementation does not throw any exceptions, instead callers must examine the outcome of the call in the Status and StatusText output parameters. |
See Also