C# Class Rock.Storage.ProviderComponent

Base class for BinaryFile storage components
Inheritance: Rock.Extension.Component
ファイルを表示 Open project: NewSpring/Rock Class Usage Examples

Public Methods

Method Description
DeleteContent ( BinaryFile file ) : void

Deletes the content from the external storage medium associated with the provider.

GetContentStream ( BinaryFile file ) : Stream

Gets the contents from the external storage medium associated with the provider

GetPath ( BinaryFile file ) : string

Gets the path.

GetUrl ( BinaryFile file ) : string

Generate a URL for the file based on the rules of the StorageProvider

ProviderComponent ( ) : System

Initializes a new instance of the ProviderComponent class.

SaveContent ( BinaryFile file ) : void

Saves the binary file contents to the external storage medium associated with the provider.

Method Details

DeleteContent() public abstract method

Deletes the content from the external storage medium associated with the provider.
public abstract DeleteContent ( BinaryFile file ) : void
file BinaryFile The file.
return void

GetContentStream() public abstract method

Gets the contents from the external storage medium associated with the provider
public abstract GetContentStream ( BinaryFile file ) : Stream
file BinaryFile The file.
return Stream

GetPath() public method

Gets the path.
public GetPath ( BinaryFile file ) : string
file BinaryFile The file.
return string

GetUrl() public method

Generate a URL for the file based on the rules of the StorageProvider
public GetUrl ( BinaryFile file ) : string
file BinaryFile The file.
return string

ProviderComponent() public method

Initializes a new instance of the ProviderComponent class.
public ProviderComponent ( ) : System
return System

SaveContent() public abstract method

Saves the binary file contents to the external storage medium associated with the provider.
public abstract SaveContent ( BinaryFile file ) : void
file BinaryFile The file.
return void