你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

StorageResourceCreationPreference Enum

Definition

Defines the behavior when a transfer resource already exists.

public enum StorageResourceCreationPreference
type StorageResourceCreationPreference = 
Public Enum StorageResourceCreationPreference
Inheritance
StorageResourceCreationPreference

Fields

Name Value Description
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