CategoryManagerSave Method (ConnectionId, SessionId, CategoryId, DocumentTypes, Boolean, Boolean, DocumentId, DocumentId, String, String, CategoryManagerUseMetaSecurity, DocumentId, String) Content Studio 5.7 SDK
Content Studio Web Content Management System

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

Saves a category

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

public void Save(
	ConnectionId connectionId,
	SessionId sessionId,
	CategoryId categoryId,
	DocumentTypes documentType,
	bool searchable,
	bool useServersideValidation,
	DocumentId startDocumentId,
	DocumentId defaultTemplateId,
	string bodyProperties,
	string description,
	CategoryManagerUseMetaSecurity useMetaSecurity,
	DocumentId editTemplateId,
	string customViewUrl


Type: ContentStudioConnectionId
A value that identifies the web site
Type: ContentStudio.SecuritySessionId
A value that identifies the user's session. This value usually originates from a call to OpenSession(ConnectionId).
Type: ContentStudio.DocumentCategoryId
The category to save
Type: ContentStudio.DocumentDocumentTypes
The document type of the category. Document types can be saved but this is generally not recommended. If you set the document type to None the document type will not be changed.
Type: SystemBoolean
Indicates that the category can be used in unit-wide full-text search operations.
Type: SystemBoolean
Set this parameter to true to use the built in server side validation of EPT-data.
Type: ContentStudio.DocumentDocumentId
The document that is used as start document of the Category. This parameter can be zero to remove the start document or -1 to ignore updates of this value.
Type: ContentStudio.DocumentDocumentId
This is the template document that acts as the default template of the category. This must be an existing document template document. This parameter can be zero to remove the default template or -1 to ignore updates of this value.
Type: SystemString
Data that will be placed in the body tag of the containing documents. The parameter cannot exceed MAX_BODYPROPERTIES_SIZE characters in length but can be null to ignore updates of this data.
Type: SystemString
A short string description of the category. This parameter cannot exceed MAX_DESCRIPTION_SIZE characters in length.
Type: ContentStudio.DocumentCategoryManagerUseMetaSecurity
Set to true to use meta data security with this category. False turns off this functionality
Type: ContentStudio.DocumentDocumentId
If the document is an ept-document then you can set this to an edit template document id. Otherwise set to 0.
Type: SystemString
Defines a custom view to use in cs-admin

CSExceptionA business rule was violated in the underlying Content Studio database
SqlExceptionAn error occurred when executing the command against the Content Studio database
ArgumentOutOfRangeExceptionA value was passed in that lies outside of the acceptable data range.
Content Studio permissions

Write container permission on the category is required to update a category.
See Also