StorageResourceCreationPreference 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 StorageResourceCreationPreference
type StorageResourceCreationPreference =
Public Enum StorageResourceCreationPreference
- Inheritance
-
StorageResourceCreationPreference
Fields
Default | 0 | The default value will be FailIfExists when starting a new transfer. When resuming a transfer, the value will default to the value used when first starting the transfer for all resources that were successfully enumerated and the regular default for any remaining resources. |
FailIfExists | 1 | If the resource already exists in the destination path, a failure will be thrown. The value for ErrorHandling 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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for