C# Класс 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
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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.

Описание методов

DeleteImage() публичный статический Метод

public static DeleteImage ( string ImageName ) : bool
ImageName string
Результат bool

DownloadImageAsync() публичный статический Метод

public static DownloadImageAsync ( string ImageName ) : Task
ImageName string
Результат Task

ImageExists() публичный статический Метод

public static ImageExists ( string ImageName ) : bool
ImageName string
Результат bool

ListImagesAsync() публичный статический Метод

public static ListImagesAsync ( string Location ) : Task
Location string
Результат Task

SearchAndDownloadImageAsync() публичный статический Метод

public static SearchAndDownloadImageAsync ( string ImageNameQuery ) : Task
ImageNameQuery string
Результат Task

UploadImage() публичный статический Метод

public static UploadImage ( Stream ImageToUpload, string ImageName ) : Task
ImageToUpload Stream
ImageName string
Результат Task