Table of Contents

Method GetProjectPermissionAsync

Namespace
Kepware.Api.ClientHandler
Assembly
Kepware.Api.dll

GetProjectPermissionAsync(ServerUserGroup, ProjectPermissionName, CancellationToken)

Retrieves a project permission for a specific server user group asynchronously.

public Task<ProjectPermission?> GetProjectPermissionAsync(ServerUserGroup serverUserGroup, ProjectPermissionName projectPermissionName, CancellationToken cancellationToken = default)

Parameters

serverUserGroup ServerUserGroup

The server user group for which to retrieve the project permission.

projectPermissionName ProjectPermissionName

The name of the project permission to retrieve.

cancellationToken CancellationToken

A token that can be used to request cancellation of the operation.

Returns

Task<ProjectPermission>

The ProjectPermission or null if not found.

GetProjectPermissionAsync(string, ProjectPermissionName, CancellationToken)

Retrieves a project permission for a specific server user group asynchronously.

public Task<ProjectPermission?> GetProjectPermissionAsync(string serverUserGroupName, ProjectPermissionName projectPermissionName, CancellationToken cancellationToken = default)

Parameters

serverUserGroupName string

The name of the server user group for which to retrieve the project permission.

projectPermissionName ProjectPermissionName

The name of the project permission to retrieve.

cancellationToken CancellationToken

A token that can be used to request cancellation of the operation.

Returns

Task<ProjectPermission>

The ProjectPermission or null if not found.