C# Class Microsoft.WindowsAzure.Commands.Storage.Common.Util

显示文件 Open project: Azure/azure-powershell

Public Methods

Method Description
BytesToHumanReadableSize ( double size ) : string

Translate a size in bytes to human readable form.

GetBlobReference ( Microsoft.WindowsAzure.Storage.Blob.CloudBlobContainer container, string blobName, BlobType blobType ) : Microsoft.WindowsAzure.Storage.Blob.CloudBlob
GetBlobReference ( Uri blobUri, Microsoft.WindowsAzure.Storage.Auth.StorageCredentials storageCredentials, BlobType blobType ) : Microsoft.WindowsAzure.Storage.Blob.CloudBlob
GetBlobReferenceFromServer ( Microsoft.WindowsAzure.Storage.Blob.CloudBlobClient client, Uri blobUri ) : Microsoft.WindowsAzure.Storage.Blob.CloudBlob
GetBlobReferenceFromServer ( Microsoft.WindowsAzure.Storage.Blob.CloudBlobContainer container, string blobName, Microsoft.WindowsAzure.Storage.AccessCondition accessCondition = null, Microsoft.WindowsAzure.Storage.Blob.BlobRequestOptions options = null, Microsoft.WindowsAzure.Storage.OperationContext operationContext = null ) : Microsoft.WindowsAzure.Storage.Blob.CloudBlob
GetCorrespondingTypeBlobReference ( Microsoft.WindowsAzure.Storage.Blob.CloudBlob blob ) : Microsoft.WindowsAzure.Storage.Blob.CloudBlob
SetupIPAddressOrRangeForSAS ( string inputIPACL ) : Microsoft.WindowsAzure.Storage.IPAddressOrRange

Private Methods

Method Description
GetBlobReferenceFromServer ( Microsoft.WindowsAzure.Storage.Blob.CloudBlob blob, Microsoft.WindowsAzure.Storage.AccessCondition accessCondition = null, Microsoft.WindowsAzure.Storage.Blob.BlobRequestOptions options = null, Microsoft.WindowsAzure.Storage.OperationContext operationContext = null ) : Microsoft.WindowsAzure.Storage.Blob.CloudBlob

Method Details

BytesToHumanReadableSize() public static method

Translate a size in bytes to human readable form.
public static BytesToHumanReadableSize ( double size ) : string
size double Size in bytes.
return string

GetBlobReference() public static method

public static GetBlobReference ( Microsoft.WindowsAzure.Storage.Blob.CloudBlobContainer container, string blobName, BlobType blobType ) : Microsoft.WindowsAzure.Storage.Blob.CloudBlob
container Microsoft.WindowsAzure.Storage.Blob.CloudBlobContainer
blobName string
blobType BlobType
return Microsoft.WindowsAzure.Storage.Blob.CloudBlob

GetBlobReference() public static method

public static GetBlobReference ( Uri blobUri, Microsoft.WindowsAzure.Storage.Auth.StorageCredentials storageCredentials, BlobType blobType ) : Microsoft.WindowsAzure.Storage.Blob.CloudBlob
blobUri System.Uri
storageCredentials Microsoft.WindowsAzure.Storage.Auth.StorageCredentials
blobType BlobType
return Microsoft.WindowsAzure.Storage.Blob.CloudBlob

GetBlobReferenceFromServer() public static method

public static GetBlobReferenceFromServer ( Microsoft.WindowsAzure.Storage.Blob.CloudBlobClient client, Uri blobUri ) : Microsoft.WindowsAzure.Storage.Blob.CloudBlob
client Microsoft.WindowsAzure.Storage.Blob.CloudBlobClient
blobUri System.Uri
return Microsoft.WindowsAzure.Storage.Blob.CloudBlob

GetBlobReferenceFromServer() public static method

public static GetBlobReferenceFromServer ( Microsoft.WindowsAzure.Storage.Blob.CloudBlobContainer container, string blobName, Microsoft.WindowsAzure.Storage.AccessCondition accessCondition = null, Microsoft.WindowsAzure.Storage.Blob.BlobRequestOptions options = null, Microsoft.WindowsAzure.Storage.OperationContext operationContext = null ) : Microsoft.WindowsAzure.Storage.Blob.CloudBlob
container Microsoft.WindowsAzure.Storage.Blob.CloudBlobContainer
blobName string
accessCondition Microsoft.WindowsAzure.Storage.AccessCondition
options Microsoft.WindowsAzure.Storage.Blob.BlobRequestOptions
operationContext Microsoft.WindowsAzure.Storage.OperationContext
return Microsoft.WindowsAzure.Storage.Blob.CloudBlob

GetCorrespondingTypeBlobReference() public static method

public static GetCorrespondingTypeBlobReference ( Microsoft.WindowsAzure.Storage.Blob.CloudBlob blob ) : Microsoft.WindowsAzure.Storage.Blob.CloudBlob
blob Microsoft.WindowsAzure.Storage.Blob.CloudBlob
return Microsoft.WindowsAzure.Storage.Blob.CloudBlob

SetupIPAddressOrRangeForSAS() public static method

public static SetupIPAddressOrRangeForSAS ( string inputIPACL ) : Microsoft.WindowsAzure.Storage.IPAddressOrRange
inputIPACL string
return Microsoft.WindowsAzure.Storage.IPAddressOrRange