CSApplicationRestartSite Method (ConnectionId, SessionId, Int32, String) Content Studio 5.7 SDK
Content Studio Web Content Management System

[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)

public void RestartSite(
	ConnectionId connectionId,
	SessionId sessionId,
	out int status,
	out string statusText


Type: ContentStudioConnectionId
A value that identifies the web site
Type: ContentStudio.SecuritySessionId
A value that identifies the users session. This value usually originates from a call to OpenSession(ConnectionId).
Type: SystemInt32
An integer indicating result of the call. Zero is success.
Type: SystemString
The textual representation of the call result.
Content Studio permissions

The caller must have either the GlobalGroupAdmin or the RestartWebSite global group right in order to successfully execute this method.

Note 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.
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.
See Also