Class CommitInfo
The commit info object
Inherited Members
Namespace: Dropbox.Api.Files
Assembly: Dropbox.Api.dll
Syntax
public class CommitInfo
Constructors
| Improve this Doc View SourceCommitInfo(String, WriteMode, Boolean, Nullable<DateTime>, Boolean, IEnumerable<PropertyGroup>, Boolean)
Initializes a new instance of the CommitInfo class.
Declaration
public CommitInfo(string path, WriteMode mode = null, bool autorename = false, DateTime? clientModified = null, bool mute = false, IEnumerable<PropertyGroup> propertyGroups = null, bool strictConflict = false)
Parameters
Type | Name | Description |
---|---|---|
System.String | path | Path in the user's Dropbox to save the file. |
WriteMode | mode | Selects what to do if the file already exists. |
System.Boolean | autorename | If there's a conflict, as determined by |
System.Nullable<System.DateTime> | clientModified | The value to store as the |
System.Boolean | mute | Normally, users are made aware of any file modifications in
their Dropbox account via notifications in the client software. If |
System.Collections.Generic.IEnumerable<PropertyGroup> | propertyGroups | List of custom properties to add to file. |
System.Boolean | strictConflict | Be more strict about how each WriteMode
detects conflict. For example, always return a conflict error when |
Properties
| Improve this Doc View SourceAutorename
If there's a conflict, as determined by Mode, have the Dropbox server try to autorename the file to avoid conflict.
Declaration
public bool Autorename { get; protected set; }
Property Value
Type | Description |
---|---|
System.Boolean |
ClientModified
The value to store as the ClientModified timestamp. Dropbox automatically records the time at which the file was written to the Dropbox servers. It can also record an additional timestamp, provided by Dropbox desktop clients, mobile clients, and API apps of when the file was actually created or modified.
Declaration
public DateTime? ClientModified { get; protected set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.DateTime> |
Mode
Selects what to do if the file already exists.
Declaration
public WriteMode Mode { get; protected set; }
Property Value
Type | Description |
---|---|
WriteMode |
Mute
Normally, users are made aware of any file modifications in their Dropbox
account via notifications in the client software. If true
, this tells the
clients that this modification shouldn't result in a user notification.
Declaration
public bool Mute { get; protected set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Path
Path in the user's Dropbox to save the file.
Declaration
public string Path { get; protected set; }
Property Value
Type | Description |
---|---|
System.String |
PropertyGroups
List of custom properties to add to file.
Declaration
public IList<PropertyGroup> PropertyGroups { get; protected set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IList<PropertyGroup> |
StrictConflict
Be more strict about how each WriteMode detects conflict. For example, always return a conflict error when Mode = WriteMode.Update and the given "rev" doesn't match the existing file's "rev", even if the existing file has been deleted. This also forces a conflict even when the target path refers to a file with identical contents.
Declaration
public bool StrictConflict { get; protected set; }
Property Value
Type | Description |
---|---|
System.Boolean |