IProtectionEngine.GetRightsForLabelId 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
GetRightsForLabelId(String, String, String, String) |
Get collection of rights available to a user for a label ID. |
GetRightsForLabelId(String, String, String, String, ProtectionCommonSettings) |
Get collection of rights available to a user for a label ID. |
GetRightsForLabelId(String, String, String, String)
Get collection of rights available to a user for a label ID.
public System.Collections.Generic.List<string> GetRightsForLabelId (string documentId, string labelId, string ownerEmail, string delegatedUserEmail);
abstract member GetRightsForLabelId : string * string * string * string -> System.Collections.Generic.List<string>
Public Function GetRightsForLabelId (documentId As String, labelId As String, ownerEmail As String, delegatedUserEmail As String) As 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
List of rights.
Applies to
GetRightsForLabelId(String, String, String, String, ProtectionCommonSettings)
Get collection of rights available to a user for a label ID.
public System.Collections.Generic.List<string> GetRightsForLabelId (string documentId, string labelId, string ownerEmail, string delegatedUserEmail, Microsoft.InformationProtection.Protection.ProtectionCommonSettings settings = default);
abstract member GetRightsForLabelId : string * string * string * string * Microsoft.InformationProtection.Protection.ProtectionCommonSettings -> System.Collections.Generic.List<string>
Public Function GetRightsForLabelId (documentId As String, labelId As String, ownerEmail As String, delegatedUserEmail As String, Optional settings As ProtectionCommonSettings = Nothing) As 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
List of rights.