Class PropertiesResource
The "properties" collection of methods.
Inheritance
System.Object
PropertiesResource
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 PropertiesResource
Constructors
PropertiesResource(IClientService)
Constructs a new resource.
Declaration
public PropertiesResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Delete(String, String)
Deletes a property.
Declaration
public virtual PropertiesResource.DeleteRequest Delete(string fileId, string propertyKey)
Parameters
Type | Name | Description |
---|---|---|
System.String | fileId | The ID of the file. |
System.String | propertyKey | The key of the property. |
Returns
Type | Description |
---|---|
PropertiesResource.DeleteRequest |
Get(String, String)
Gets a property by its key.
Declaration
public virtual PropertiesResource.GetRequest Get(string fileId, string propertyKey)
Parameters
Type | Name | Description |
---|---|---|
System.String | fileId | The ID of the file. |
System.String | propertyKey | The key of the property. |
Returns
Type | Description |
---|---|
PropertiesResource.GetRequest |
Insert(Property, String)
Adds a property to a file, or updates it if it already exists.
Declaration
public virtual PropertiesResource.InsertRequest Insert(Property body, string fileId)
Parameters
Type | Name | Description |
---|---|---|
Property | body | The body of the request. |
System.String | fileId | The ID of the file. |
Returns
Type | Description |
---|---|
PropertiesResource.InsertRequest |
List(String)
Lists a file's properties.
Declaration
public virtual PropertiesResource.ListRequest List(string fileId)
Parameters
Type | Name | Description |
---|---|---|
System.String | fileId | The ID of the file. |
Returns
Type | Description |
---|---|
PropertiesResource.ListRequest |
Patch(Property, String, String)
Updates a property.
Declaration
public virtual PropertiesResource.PatchRequest Patch(Property body, string fileId, string propertyKey)
Parameters
Type | Name | Description |
---|---|---|
Property | body | The body of the request. |
System.String | fileId | The ID of the file. |
System.String | propertyKey | The key of the property. |
Returns
Type | Description |
---|---|
PropertiesResource.PatchRequest |
Update(Property, String, String)
Updates a property.
Declaration
public virtual PropertiesResource.UpdateRequest Update(Property body, string fileId, string propertyKey)
Parameters
Type | Name | Description |
---|---|---|
Property | body | The body of the request. |
System.String | fileId | The ID of the file. |
System.String | propertyKey | The key of the property. |
Returns
Type | Description |
---|---|
PropertiesResource.UpdateRequest |