Class ChildrenResource
The "children" collection of methods.
Inherited Members
Namespace: Google.Apis.Drive.v2
Assembly: Google.Apis.Drive.v2.dll
Syntax
public class ChildrenResource
Constructors
ChildrenResource(IClientService)
Constructs a new resource.
Declaration
public ChildrenResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Delete(string, string)
Removes a child from a folder.
Declaration
public virtual ChildrenResource.DeleteRequest Delete(string folderId, string childId)
Parameters
Type | Name | Description |
---|---|---|
string | folderId | The ID of the folder. |
string | childId | The ID of the child. |
Returns
Type | Description |
---|---|
ChildrenResource.DeleteRequest |
Get(string, string)
Gets a specific child reference.
Declaration
public virtual ChildrenResource.GetRequest Get(string folderId, string childId)
Parameters
Type | Name | Description |
---|---|---|
string | folderId | The ID of the folder. |
string | childId | The ID of the child. |
Returns
Type | Description |
---|---|
ChildrenResource.GetRequest |
Insert(ChildReference, string)
Inserts a file into a folder.
Declaration
public virtual ChildrenResource.InsertRequest Insert(ChildReference body, string folderId)
Parameters
Type | Name | Description |
---|---|---|
ChildReference | body | The body of the request. |
string | folderId | The ID of the folder. |
Returns
Type | Description |
---|---|
ChildrenResource.InsertRequest |
List(string)
Lists a folder's children.
Declaration
public virtual ChildrenResource.ListRequest List(string folderId)
Parameters
Type | Name | Description |
---|---|---|
string | folderId | The ID of the folder. |
Returns
Type | Description |
---|---|
ChildrenResource.ListRequest |