public Task<List<File>> GetOwnedItemsAsync(
Func<File, bool> predicate
)
Public Function GetOwnedItemsAsync (
predicate As Func(Of File, Boolean)
) As Task(Of List(Of File))
Dim instance As DriveClient
Dim predicate As Func(Of File, Boolean)
Dim returnValue As Task(Of List(Of File))
returnValue = instance.GetOwnedItemsAsync(predicate)
public:
Task<List<File^>^>^ GetOwnedItemsAsync(
Func<File^, bool>^ predicate
)
member GetOwnedItemsAsync :
predicate : Func<File, bool> -> Task<List<File>>
No code example is currently available or this language may not be supported.
[Missing <param name="predicate"/> documentation for "M:DevCase.ThirdParty.Google.Drive.DriveClient.GetOwnedItemsAsync(System.Func{Google.Apis.Drive.v3.Data.File,System.Boolean})"]
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 = Await client.AuthorizeAsync()
Dim predicate As Func(Of Google.Apis.Drive.v3.Data.File, Boolean) =
Function(f As Google.Apis.Drive.v3.Data.File) f.Name.Equals("My Folder Name", StringComparison.OrdinalIgnoreCase)
Dim items As List(Of Google.Apis.Drive.v3.Data.File) = Await client.GetOwnedItemsAsync(predicate)
Dim itemCount As Integer
For Each item As Google.Apis.Drive.v3.Data.File In items
Dim sb As New Global.System.Text.StringBuilder()
With sb
.AppendLine(String.Format("Count: {0}", Interlocked.Increment(itemCount)))
.AppendLine(String.Format("Id: {0}", item.Id))
.AppendLine(String.Format("Is Folder?: {0}", item.MimeType.Contains("folder")))
.AppendLine(String.Format("Name: {0}", item.Name))
.AppendLine(String.Format("Size: {0}", item.Size))
.AppendLine(String.Format("Date Created: {0}", item.CreatedTime?.ToString()))
.AppendLine(String.Format("Url: {0}", If(item.WebContentLink, item.WebViewLink)))
.AppendLine(String.Format("Parent Folder Ids: {0}", String.Join(",", If(item.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.