Esempio n. 1
0
        internal static string ToSerializedValue(this CopyStatus value)
        {
            switch (value)
            {
            case CopyStatus.NotStarted:
                return("NotStarted");

            case CopyStatus.InProgress:
                return("InProgress");

            case CopyStatus.Completed:
                return("Completed");

            case CopyStatus.CompletedWithErrors:
                return("CompletedWithErrors");

            case CopyStatus.Failed:
                return("Failed");

            case CopyStatus.NotReturned:
                return("NotReturned");

            case CopyStatus.HardwareError:
                return("HardwareError");

            case CopyStatus.DeviceFormatted:
                return("DeviceFormatted");

            case CopyStatus.DeviceMetadataModified:
                return("DeviceMetadataModified");

            case CopyStatus.StorageAccountNotAccessible:
                return("StorageAccountNotAccessible");

            case CopyStatus.UnsupportedData:
                return("UnsupportedData");
            }
            return(null);
        }
Esempio n. 2
0
        internal static string ToSerializedValue(this CopyStatus value)
        {
            switch (value)
            {
            case CopyStatus.NotStarted:
                return("NotStarted");

            case CopyStatus.InProgress:
                return("InProgress");

            case CopyStatus.Completed:
                return("Completed");

            case CopyStatus.CompletedWithErrors:
                return("CompletedWithErrors");

            case CopyStatus.Failed:
                return("Failed");

            case CopyStatus.NotReturned:
                return("NotReturned");
            }
            return(null);
        }