Content Studio Web Content Management System
Assembly: CSServer5 (in CSServer5.dll) Version: 5.7.5016.0 (5.7.5016.0)
WriteContainer permission on the unit is required.
[This is preliminary documentation and is subject to change.]
Saves data for a unit. You can choose what properties to update or update all properties of the unit.
Namespace: ContentStudio.Document
Assembly: CSServer5 (in CSServer5.dll) Version: 5.7.5016.0 (5.7.5016.0)
Syntax
public void Save( ConnectionId connectionId, SessionId sessionId, UnitId unitId, DocumentId startId, string metaData, string description, string telephoneNumber, string faxNumber, string address, string zipCode, string city, string email )
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). - unitId
- Type: ContentStudio.DocumentUnitId
The unit to save. This value must be an existing unit. - startId
- Type: ContentStudio.DocumentDocumentId
The document that is used as start document of the unit. This parameter is zero if the unit has no start document also you can pass -1 to avoid updating the value. If you pass anything than -1 Content Studio also rewrite the default.aspx file that defines the start id behavior of the unit. - metaData
- Type: SystemString
Meta data that should be included with every document in the unit. This parameter cannot exceed MAX_METADATA_SIZE characters in length. Pass null if you do not wish to edit this value. - description
- Type: SystemString
A short description of the unit. This parameter cannot exceed MAX_DESCRIPTION_SIZE characters in length. Pass null if you do not wish to edit this value. - telephoneNumber
- Type: SystemString
A string representing the unit's telephone number. This parameter cannot exceed MAX_TELEPHONE_SIZE characters in length. Pass null if you do not wish to edit this value. - faxNumber
- Type: SystemString
A string representing the unit's fax number. This parameter cannot exceed MAX_FAXNUMBER_SIZE characters in length. Pass null if you do not wish to edit this value. - address
- Type: SystemString
A string representing the unit's address. This parameter cannot exceed MAX_ADDRESS_SIZE characters in length. Pass null if you do not wish to edit this value. - zipCode
- Type: SystemString
A string representing the unit's zip code. This parameter cannot exceed MAX_ZIPCODE_SIZE characters in length. Pass null if you do not wish to edit this value. - city
- Type: SystemString
A string representing the unit's city. This parameter cannot exceed MAX_CITY_SIZE characters in length. Pass null if you do not wish to edit this value. - Type: SystemString
A string representing the unit's email. This parameter cannot exceed MAX_EMAIL_SIZE characters in length. Pass null if you do not wish to edit this value.
Exceptions
Exception | Condition |
---|---|
CSException | A business rule was violated in the underlying Content Studio database |
SqlException | An error occurred when executing the command against the Content Studio database |
Content Studio permissions
See Also