public Task<File> GetFileByIdAsync(
string id
)
Public Function GetFileByIdAsync (
id As String
) As Task(Of File)
Dim instance As DriveClient
Dim id As String
Dim returnValue As Task(Of File)
returnValue = instance.GetFileByIdAsync(id)
public:
Task<File^>^ GetFileByIdAsync(
String^ id
)
member GetFileByIdAsync :
id : string -> Task<File>
No code example is currently available or this language may not be supported.
[Missing <param name="id"/> documentation for "M:DevCase.ThirdParty.Google.Drive.DriveClient.GetFileByIdAsync(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 file As Google.Apis.Drive.v3.Data.File) = Await client.GetFileByIdAsync(" File Id. ")
Dim sb As New Global.System.Text.StringBuilder()
With sb
.AppendLine(String.Format("Id: {0}", file.Id))
.AppendLine(String.Format("Owned By Me?: {0}", file.OwnedByMe))
.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())
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.