Content Studio Web Content Management System
Assembly: CSServer5 (in CSServer5.dll) Version: 5.7.5016.0 (5.7.5016.0)
WRITE permission on the event action item is required
[This is preliminary documentation and is subject to change.]
Saves the user name and password an Event actions item. These credentials can be used by the Event actions execution engine if requested.
The password is stored in an encrypted form in the database.
Namespace: ContentStudio.EventActions
Assembly: CSServer5 (in CSServer5.dll) Version: 5.7.5016.0 (5.7.5016.0)
Syntax
public void SetCredentials( ConnectionId connectionId, SessionId sessionId, int eventActionId, string userName, string password )
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). - eventActionId
- Type: SystemInt32
The identifier to the Event Actions item to save credentials for. - userName
- Type: SystemString
The user name to save. This name cannot contain Unicode characters and cannot be longer than MAX_USERNAME_SIZE characters in length. This parameter can be null to indicate no credentials.Remarks - password
- Type: SystemString
The password of the user account. This value cannot contain Unicode characters and cannot be longer than MAX_PASSWORD_SIZE characters in length. This parameter can be null to indicate no password.
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | A string parameter was has too long a value. |
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