Content Studio Web Content Management System
Assembly: CSServer5 (in CSServer5.dll) Version: 5.7.5016.0 (5.7.5016.0)
Write Container permission on the affected category is required to rename a category.
[This is preliminary documentation and is subject to change.]
Renames a category in Content Studio and in the underlying file system.
Namespace: ContentStudio.Document
Assembly: CSServer5 (in CSServer5.dll) Version: 5.7.5016.0 (5.7.5016.0)
Syntax
public void Rename( ConnectionId connectionId, SessionId sessionId, CategoryId categoryId, string newName )
Parameters
- connectionId
- Type: ContentStudioConnectionId
A value that identifies the web site - sessionId
- Type: ContentStudio.SecuritySessionId
A value that identifies the user's session. This value usually originates from a call to OpenSession(ConnectionId). - categoryId
- Type: ContentStudio.DocumentCategoryId
The identifier of the category to rename. - newName
- Type: SystemString
The new category name. This name cannot be null, empty or contain any invalid filename character and cannot be in use already.
Exceptions
Exception | Condition | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ArgumentOutOfRangeException | The specified connectionId or newName is not valid. | ||||||||||||
ArgumentNullException | |||||||||||||
IOException | |||||||||||||
UnauthorizedAccessException | |||||||||||||
CSPermissionDeniedException | |||||||||||||
CSInvalidSessionException | |||||||||||||
PlatformNotSupportedException | The operation requires at least Vista / Windows Server 2008 | ||||||||||||
CSException |
|
Content Studio permissions
Remarks
This metod was added in CS 5.4
Requires Transactional NTFS which is present in Windows Vista / Server 2008 and later.
See Also