C# Class AzurelensBlob.BlobManager

Azure Storage Blob Sample - Demonstrate how to use the Blob Storage service. Blob storage stores unstructured data such as text, binary data, documents or media files. Blobs can be accessed from anywhere in the world via HTTP or HTTPS. Note: This sample uses the .NET 4.5 asynchronous programming model to demonstrate how to call the Storage Service using the storage client libraries asynchronous API's. When used in real applications this approach enables you to improve the responsiveness of your application. Calls to the storage service are prefixed by the await keyword. Documentation References: - What is a Storage Account - http://azure.microsoft.com/en-us/documentation/articles/storage-whatis-account/ - Getting Started with Blobs - http://azure.microsoft.com/en-us/documentation/articles/storage-dotnet-how-to-use-blobs/ - Blob Service Concepts - http://msdn.microsoft.com/en-us/library/dd179376.aspx - Blob Service REST API - http://msdn.microsoft.com/en-us/library/dd135733.aspx - Blob Service C# API - http://go.microsoft.com/fwlink/?LinkID=398944 - Delegating Access with Shared Access Signatures - http://azure.microsoft.com/en-us/documentation/articles/storage-dotnet-shared-access-signature-part-1/ - Storage Emulator - http://msdn.microsoft.com/en-us/library/azure/hh403989.aspx - Asynchronous Programming with Async and Await - http://msdn.microsoft.com/en-us/library/hh191443.aspx
Afficher le fichier Open project: MicrosoftDX/AzureLens

Méthodes publiques

Méthode Description
DeleteImage ( string ImageName ) : bool
DownloadImageAsync ( string ImageName ) : Task
ImageExists ( string ImageName ) : bool
ListImagesAsync ( string Location ) : Task
SearchAndDownloadImageAsync ( string ImageNameQuery ) : Task
UploadImage ( Stream ImageToUpload, string ImageName ) : Task

Private Methods

Méthode Description
CreateStorageAccountFromConnectionString ( string storageConnectionString ) : CloudStorageAccount

Validates the connection string information in app.config and throws an exception if it looks like the user hasn't updated this to valid values.

Method Details

DeleteImage() public static méthode

public static DeleteImage ( string ImageName ) : bool
ImageName string
Résultat bool

DownloadImageAsync() public static méthode

public static DownloadImageAsync ( string ImageName ) : Task
ImageName string
Résultat Task

ImageExists() public static méthode

public static ImageExists ( string ImageName ) : bool
ImageName string
Résultat bool

ListImagesAsync() public static méthode

public static ListImagesAsync ( string Location ) : Task
Location string
Résultat Task

SearchAndDownloadImageAsync() public static méthode

public static SearchAndDownloadImageAsync ( string ImageNameQuery ) : Task
ImageNameQuery string
Résultat Task

UploadImage() public static méthode

public static UploadImage ( Stream ImageToUpload, string ImageName ) : Task
ImageToUpload Stream
ImageName string
Résultat Task