Click or drag to resize
MediaLibraryRolePermissionInfoProviderGetAsync Method (Int32, Int32, Int32, NullableCancellationToken)
Asynchronously gets an instance of the MediaLibraryRolePermissionInfo binding structure.

Namespace: CMS.MediaLibrary
Assembly: CMS.MediaLibrary (in CMS.MediaLibrary.dll) Version: 13.0.131
Syntax
C#
public virtual Task<MediaLibraryRolePermissionInfo> GetAsync(
	int libraryId,
	int roleId,
	int permissionId,
	Nullable<CancellationToken> cancellationToken = null
)

Parameters

libraryId
Type: SystemInt32
Media library ID.
roleId
Type: SystemInt32
Role ID.
permissionId
Type: SystemInt32
Permission ID.
cancellationToken (Optional)
Type: SystemNullableCancellationToken
The cancellation instruction.

Return Value

Type: TaskMediaLibraryRolePermissionInfo
Returns a task returning either an instance of MediaLibraryRolePermissionInfo corresponding to given identifiers or null.

Implements

IMediaLibraryRolePermissionInfoProviderGetAsync(Int32, Int32, Int32, NullableCancellationToken)
See Also