StorageResourceCreationMode Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Defines the behavior when a transfer resource already exists.
public enum StorageResourceCreationMode
type StorageResourceCreationMode =
Public Enum StorageResourceCreationMode
- Inheritance
-
StorageResourceCreationMode
Fields
Name | Value | Description |
---|---|---|
Default | 0 | The default value. This will be FailIfExists or, when resuming a transfer, it will use the value that was used when first starting the transfer. Any other value will override the behavior on resume. NOTE: If a transfer was paused/stopped before all resources were enumerated, any unenumerated resource will use the value of FailIfExists on resume. |
FailIfExists | 1 | If the resource already exists in the destination path, a failure will be thrown. The value for ErrorMode will determine if the transfer continues after the failure or not. |
OverwriteIfExists | 2 | Overwrites the resource if it already exists. No error will be thrown. |
SkipIfExists | 3 | If the resource already exists in the destination path, no failure will be thrown. The resource will simply be skipped over and the transfer will continue. If ErrorHandlingOptions.StopOnAnyFailures is set, the resource will still be skipped. |
Applies to
Azure SDK for .NET