Class ParentsResource
The "parents" collection of methods.
Inherited Members
Namespace: Google.Apis.Drive.v2
Assembly: Google.Apis.Drive.v2.dll
Syntax
public class ParentsResource
Constructors
ParentsResource(IClientService)
Constructs a new resource.
Declaration
public ParentsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Delete(string, string)
Removes a parent from a file.
Declaration
public virtual ParentsResource.DeleteRequest Delete(string fileId, string parentId)
Parameters
Type | Name | Description |
---|---|---|
string | fileId | The ID of the file. |
string | parentId | The ID of the parent. |
Returns
Type | Description |
---|---|
ParentsResource.DeleteRequest |
Get(string, string)
Gets a specific parent reference.
Declaration
public virtual ParentsResource.GetRequest Get(string fileId, string parentId)
Parameters
Type | Name | Description |
---|---|---|
string | fileId | The ID of the file. |
string | parentId | The ID of the parent. |
Returns
Type | Description |
---|---|
ParentsResource.GetRequest |
Insert(ParentReference, string)
Adds a parent folder for a file.
Declaration
public virtual ParentsResource.InsertRequest Insert(ParentReference body, string fileId)
Parameters
Type | Name | Description |
---|---|---|
ParentReference | body | The body of the request. |
string | fileId | The ID of the file. |
Returns
Type | Description |
---|---|
ParentsResource.InsertRequest |
List(string)
Lists a file's parents.
Declaration
public virtual ParentsResource.ListRequest List(string fileId)
Parameters
Type | Name | Description |
---|---|---|
string | fileId | The ID of the file. |
Returns
Type | Description |
---|---|
ParentsResource.ListRequest |