Edit

IFileEngine.GetRightsForLabelIdAsync Method

Definition

Starts getting collection of rights available to a user for a label ID.

public System.Threading.Tasks.Task<System.Collections.Generic.List<string>> GetRightsForLabelIdAsync(string documentId, string labelId, string ownerEmail, Microsoft.InformationProtection.Protection.ProtectionCommonSettings settings = default);
abstract member GetRightsForLabelIdAsync : string * string * string * Microsoft.InformationProtection.Protection.ProtectionCommonSettings -> System.Threading.Tasks.Task<System.Collections.Generic.List<string>>
Public Function GetRightsForLabelIdAsync (documentId As String, labelId As String, ownerEmail As String, Optional settings As ProtectionCommonSettings = Nothing) As Task(Of List(Of String))

Parameters

documentId
String

Document ID associated with the document metadata.

labelId
String

Label ID associated with the document metadata with which the document created.

ownerEmail
String

Owner of the document.

settings
ProtectionCommonSettings

Common settings for protection

Returns

A task that represents the asynchronous create operation. The value of the TResult parameter contains the list of rights.

Applies to