Skip to main content
Table of Contents

TTMSFNCCustomCloudMicrosoftOneDrive.GetSharePromise Method

Promise-based variant of GetShare.

API unit family: TMSFNCCloudMicrosoftOneDrive Declaring type: TTMSFNCCustomCloudMicrosoftOneDrive

Syntax

FMX.TMSFNCCloudMicrosoftOneDrive.hppPascalC++
function GetSharePromise(AItem: TTMSFNCCloudMicrosoftOneDriveItem; ReadOnly: Boolean = True): IPromise<string>;
System::DelphiInterface<IPromise__1<System::UnicodeString> > __fastcall GetSharePromise(TTMSFNCCloudMicrosoftOneDriveItem* AItem, bool ReadOnly = true);

Parameters

Name Description
AItem Item to share.
ReadOnly When True, creates a view-only link; otherwise an edit link.

Returns

A promise that resolves with the public share URL.