CSApplicationGetDbSizeInformation Method Content Studio 5.7 SDK
Content Studio Web Content Management System

[This is preliminary documentation and is subject to change.]

Gets the size of the current Content Studio database.

Namespace: ContentStudio
Assembly: CSServer5 (in CSServer5.dll) Version: 5.7.5016.0 (5.7.5016.0)
Syntax

public SqlServerDatabaseSizeInfo GetDbSizeInformation(
	ConnectionId connectionId,
	SessionId sessionId
)

Parameters

connectionId
Type: ContentStudioConnectionId
A value that uniquely identifies the Content Studio web site.
sessionId
Type: ContentStudio.SecuritySessionId
A value that identifies the users session. This value usually originates from a call to OpenSession(ConnectionId).

Return Value

Type: SqlServerDatabaseSizeInfo
A SqlServerDatabaseSizeInfo object that contains information about the size and the name of the database.
Exceptions

ExceptionCondition
SqlExceptionAn error occurred when executing the command against the Content Studio database
ArgumentOutOfRangeExceptionThe system stored procedure '[sys].[sp_spaceused]' has changed its return values. Content Studio must be updated.
ArgumentExceptionThe system stored procedure '[sys].[sp_spaceused]' has changed its return values. Content Studio must be updated.
Content Studio permissions

All authenticated and anonymous users, can call this method.
Remarks

This method is new in Content Studio version 5.2
See Also

Reference