DriveClientGetOwnedFolders Method
Gets the folders stored in the current user account that are owned by him.
Namespace: DevCase.ThirdParty.Google.DriveAssembly: DevCase.net48.ThirdParty.GoogleServices (in DevCase.net48.ThirdParty.GoogleServices.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public List<File> GetOwnedFolders()
Public Function GetOwnedFolders As List(Of File)
Dim instance As DriveClient
Dim returnValue As List(Of File)
returnValue = instance.GetOwnedFolders()
public:
List<File^>^ GetOwnedFolders()
member GetOwnedFolders : unit -> List<File>
No code example is currently available or this language may not be supported.
Return Value
ListFile
The resulting
ListT.
This is a code example.
No code example is currently available or this language may not be supported.
Dim client As New DriveClient("C:\GoogleSecrets.json", "yourmail@gmail.com", DriveScopes.Full Or DriveScopes.Metadata)
Dim credential As UserCredential = client.Authorize()
Dim folders As List(Of Google.Apis.Drive.v3.Data.File) = client.GetOwnedFolders()
Dim folderCount As Integer
For Each folder As Google.Apis.Drive.v3.Data.File In folders
Dim sb As New Global.System.Text.StringBuilder()
With sb
.AppendLine(String.Format("Count: {0}", Interlocked.Increment(folderCount)))
.AppendLine(String.Format("Id: {0}", folder.Id))
.AppendLine(String.Format("Name: {0}", folder.Name))
.AppendLine(String.Format("Size: {0}", folder.Size))
.AppendLine(String.Format("Date Created: {0}", folder.CreatedTime?.ToString()))
.AppendLine(String.Format("Url: {0}", If(folder.WebContentLink, folder.WebViewLink)))
.AppendLine(String.Format("Parent Folder Ids: {0}", String.Join(",", If(folder.Parents, {"nul"}))))
End With
Console.WriteLine(sb.ToString())
Next file
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.