Discuss this help topic in SecureBlackbox Forum

Clouds: Get OneDrive account information

To get information about the user account, use TElOneDriveDataStorage.GetUserInfo() method. The method returns an instance of TElOneDriveUser, which contains all data. Your code should free/dispose of the obtained TElOneDriveUser instance.

There's also TElOneDriveDataStorage.GetQuota() method available, which returns available and total space on the server.

C#:


TElOneDriveUserInfo info = storage.GetUserInfo();
Console.WriteLine("Account: {0}", info.Name);
info.Dispose();

long total = 0, free = 0;
storage.GetQuota(out total, out free);
Console.WriteLine("Space  : {0} of {1}", free, total);

How To articles about OneDrive cloud

Discuss this help topic in SecureBlackbox Forum