Class WriteMode
Your intent when writing a file to some path. This is used to determine what constitutes a conflict and what the autorename strategy is.
In some situations, the conflict behavior is identical: (a) If the target path doesn't refer to anything, the file is always written; no conflict. (b) If the target path refers to a folder, it's always a conflict. (c) If the target path refers to a file with identical contents, nothing gets written; no conflict.
The conflict checking differs in the case where there's a file at the target path with contents different from the contents you're trying to write.
Inherited Members
Namespace: Dropbox.Api.Files
Assembly: Dropbox.Api.dll
Syntax
public class WriteMode
Constructors
| Improve this Doc View SourceWriteMode()
Initializes a new instance of the WriteMode class.
Declaration
public WriteMode()
Properties
| Improve this Doc View SourceAsAdd
Gets this instance as a Add, or null
.
Declaration
public WriteMode.Add AsAdd { get; }
Property Value
Type | Description |
---|---|
WriteMode.Add |
AsOverwrite
Gets this instance as a Overwrite, or null
.
Declaration
public WriteMode.Overwrite AsOverwrite { get; }
Property Value
Type | Description |
---|---|
WriteMode.Overwrite |
AsUpdate
Gets this instance as a Update, or null
.
Declaration
public WriteMode.Update AsUpdate { get; }
Property Value
Type | Description |
---|---|
WriteMode.Update |
IsAdd
Gets a value indicating whether this instance is Add
Declaration
public bool IsAdd { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsOverwrite
Gets a value indicating whether this instance is Overwrite
Declaration
public bool IsOverwrite { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsUpdate
Gets a value indicating whether this instance is Update
Declaration
public bool IsUpdate { get; }
Property Value
Type | Description |
---|---|
System.Boolean |