IAccountServiceChangeLocalUserAccountPassword Method (String, String)

Changes the password for the caller's account.

Namespace:  Dundas.BI.AccountServices
Assembly:  Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (24.3.0.1000)
Syntax
OperationResult ChangeLocalUserAccountPassword(
	string oldPassword,
	string newPassword
)

Parameters

oldPassword
Type: SystemString
The old password.
newPassword
Type: SystemString
The new password.

Return Value

Type: OperationResult
An object describing the result of the operation.
Exceptions
ExceptionCondition
ArgumentNullExceptionoldPassword and/or newPassword are .
ValidationException The old or new password are not valid. If the password does not meet the application's complexity requirements, the exception's error code will be 2710.
NotSupportedExceptionThe accounts provider does not support modify operations.
NoPrivilegeExceptionThe caller is not allowed to change the password.
InvalidOperationExceptionThe caller context is associated with an account which is not a local user account.
InvalidSessionExceptionThe caller context is not associated with a valid session.
See Also