TdxCloudStorageItemPermissions.CreateSharedLink(Boolean,TdxCloudStorageItemPermissionScope) Method
Creates a shared link with a permission to view or edit a file or folder on a connected storage server.
#Declaration
procedure CreateSharedLink(AReadOnly: Boolean = True; AScope: TdxCloudStorageItemPermissionScope = TdxCloudStorageItemPermissionScope.Anonymous);
#Parameters
Name | Type | Description |
---|---|---|
ARead |
Boolean | If True, the procedure creates a read-only access permission; otherwise, creates a permission to edit the cloud resource. |
AScope | Tdx |
Enumerates access permission scopes. |
#Remarks
Call this procedure to create a new permission to view a file or folder on a cloud storage server with anonymous access. You can use the Link property of the last created access permission to access a new shared link. To revoke any access permission and render the shared link invalid, call the DeletePermission procedure and pass the target permission as a parameter.
You can pass False as the optional AReadOnly parameter to create a permission to edit the cloud resource instead.
The optional Scope parameter specifies the scope of the newly created access permission. You can pass TdxCloudStoragePermissionScope.Organization as this parameter to create a shared link usable only by members of the organization to which the connected Microsoft SharePoint® or OneDrive® storage account belongs.
Note
A Create
Important
The AScope parameter value affects only Microsoft cloud storage accounts. This parameter is always ignored for any other cloud storage provider. Refer to the Tdx