Azure Storage Type Provider


BlobFile

Namespace: FSharp.Azure.StorageTypeProvider.Blob

Represents a file in blob storage.

Instance members

Instance memberDescription
AsICloudBlob(connectionString)
Signature: (connectionString:string option) -> ICloudBlob

Gets a handle to the Azure SDK client for this blob.

Download(path, connectionString)
Signature: (path:string * connectionString:string option) -> Async<unit>

Downloads this file to the specified path.

GenerateSharedAccessSignature(...)
Signature: (duration:TimeSpan * connectionString:string option * permissions:SharedAccessBlobPermissions option) -> Uri

Generates a shared access signature for the supplied duration and permissions. Do not pass permissions for full-access.

GetProperties(connectionString)
Signature: (connectionString:string option) -> Async<BlobMetadata>

Fetches the latest metadata for the blob.

Name
Signature: string

Gets the name of the blob

CompiledName: get_Name

OpenStream(connectionString)
Signature: (connectionString:string option) -> Stream

Opens this file as a stream for reading.

OpenStreamAsText(connectionString)
Signature: (connectionString:string option) -> StreamReader

Opens this file as a text stream for reading.

ReadLines(connectionString)
Signature: (connectionString:string option) -> seq<string>

Lazily read the contents of this blob a line at a time.

Size(connectionString)
Signature: (connectionString:string option) -> int64

Gets the blob size in bytes.

Fork me on GitHub