BuildMaster SDK Reference
Version:

CanPerformTask(SecuredTask task, int? applicationGroupId, int? applicationId, int? environmentId, int? serverId) Method

Returns a value indicating whether the current user is allowed to perform the specified task.

Syntax

public bool CanPerformTask(SecuredTask task, int? applicationGroupId, int? applicationId, int? environmentId, int? serverId)

Parameters

task
Type: SecuredTask

The task to check.

applicationGroupId
Type: int?

The application group in context if applicable.

applicationId
Type: int?

The application in context if applicable.

environmentId
Type: int?

The environment in context if applicable.

serverId
Type: int?

The server in context if applicable.

Returns

True if the current user can perform the task; otherwise false.