Class ParentsResource
The "parents" collection of methods.
Inheritance
System.Object
ParentsResource
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
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 |
---|---|---|
System.String | fileId | The ID of the file. |
System.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 |
---|---|---|
System.String | fileId | The ID of the file. |
System.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. |
System.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 |
---|---|---|
System.String | fileId | The ID of the file. |
Returns
Type | Description |
---|---|
ParentsResource.ListRequest |