IProtectionEngine.GetRightsForLabelIdAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetRightsForLabelIdAsync(String, String, String, String) |
Starts getting collection of rights available to a user for a label ID. |
GetRightsForLabelIdAsync(String, String, String, String, ProtectionCommonSettings) |
Starts getting collection of rights available to a user for a label ID. |
GetRightsForLabelIdAsync(String, String, String, String)
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, string delegatedUserEmail);
abstract member GetRightsForLabelIdAsync : string * string * string * string -> System.Threading.Tasks.Task<System.Collections.Generic.List<string>>
Public Function GetRightsForLabelIdAsync (documentId As String, labelId As String, ownerEmail As String, delegatedUserEmail As String) 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.
- delegatedUserEmail
- String
A delegated user is specified when the authenticating user/application is acting on behalf of another user, empty if none.
Returns
A task that represents the asynchronous create operation. The value of the TResult
parameter contains the list of rights.
Applies to
GetRightsForLabelIdAsync(String, String, String, String, ProtectionCommonSettings)
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, string delegatedUserEmail, Microsoft.InformationProtection.Protection.ProtectionCommonSettings settings = default);
abstract member GetRightsForLabelIdAsync : string * 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, delegatedUserEmail 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.
- delegatedUserEmail
- String
A delegated user is specified when the authenticating user/application is acting on behalf of another user, empty if none.
- 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.