Partager via


RevokeSharedLinkRequest Class

Definition

Revokes user access rights from a shared link.

[System.Runtime.Serialization.DataContract(Namespace="http://schemas.microsoft.com/crm/2011/Contracts")]
public sealed class RevokeSharedLinkRequest : Microsoft.Xrm.Sdk.OrganizationRequest
[<System.Runtime.Serialization.DataContract(Namespace="http://schemas.microsoft.com/crm/2011/Contracts")>]
type RevokeSharedLinkRequest = class
    inherit OrganizationRequest
Public NotInheritable Class RevokeSharedLinkRequest
Inherits OrganizationRequest
Inheritance
RevokeSharedLinkRequest
Attributes

Examples

/// <summary>
/// Revokes the specified user access rights from the shared link. 
/// </summary>
/// <param name="client">A ServiceClient instance.</param>
/// <param name="entRef">The target table row.</param>
/// <param name="rights">Access rights to revoke.</param>
public void Revoke_SharedLink(ServiceClient client, EntityReference entRef,
      AccessRights rights)
{
    RevokeSharedLinkRequest request = new()
    {
      Target = entRef,
      SharedRights = rights
    };

    RevokeSharedLinkResponse response = 
        (RevokeSharedLinkResponse)client.Execute(request);
}

Remarks

All users who clicked on the shared link in the Power Apps web application will lose the specified access.

Constructors

RevokeSharedLinkRequest()

Initializes a new instance of the RevokeSharedLinkRequest class.

Properties

ExtensionData

Gets or sets the structure that contains extra data. Optional.

(Inherited from OrganizationRequest)
Item[String]

Gets or sets the indexer for the Parameters collection.

(Inherited from OrganizationRequest)
Parameters

Gets or sets the collection of parameters for the request. Required, but is supplied by derived classes.

(Inherited from OrganizationRequest)
RequestId

Gets or sets the ID of the request. Optional.

(Inherited from OrganizationRequest)
RequestName

Gets or sets the name of the request. Required, but is supplied by derived classes.

(Inherited from OrganizationRequest)
SharedRights

Gets or sets the access rights that will be revoked.

Target

Gets or sets the target table row.

Applies to

See also