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