BuildMaster SDK Reference
Version:

CanPerformTask(Inedo.Security.BuildMasterSecuredTask 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 static bool CanPerformTask(Inedo.Security.BuildMasterSecuredTask task, int? applicationGroupId, int? applicationId, int? environmentId, int? serverId)

Parameters

task
Type: Inedo.Security.BuildMasterSecuredTask

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.