C# Class Rock.Storage.ProviderComponent

Base class for BinaryFile storage components
Inheritance: Rock.Extension.Component
Afficher le fichier Open project: NewSpring/Rock Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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

GetContentStream() public abstract méthode

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

GetPath() public méthode

Gets the path.
public GetPath ( BinaryFile file ) : string
file BinaryFile The file.
Résultat string

GetUrl() public méthode

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

ProviderComponent() public méthode

Initializes a new instance of the ProviderComponent class.
public ProviderComponent ( ) : System
Résultat System

SaveContent() public abstract méthode

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