EventActionsSetCredentials Method (ConnectionId, SessionId, Int32, String, String) Content Studio 5.7 SDK
Content Studio Web Content Management System

[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

In Content Studio version 5.6 the name can contain unicode characters
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

ExceptionCondition
ArgumentOutOfRangeExceptionA string parameter was has too long a value.
CSExceptionA business rule was violated in the underlying Content Studio database
SqlExceptionAn error occurred when executing the command against the Content Studio database
Content Studio permissions

WRITE permission on the event action item is required
See Also

Reference