C# Класс Rock.Storage.ProviderComponent

Base class for BinaryFile storage components
Наследование: Rock.Extension.Component
Показать файл Открыть проект Примеры использования класса

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

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

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

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

Deletes the content from the external storage medium associated with the provider.
public abstract DeleteContent ( BinaryFile file ) : void
file BinaryFile The file.
Результат void

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

Gets the contents from the external storage medium associated with the provider
public abstract GetContentStream ( BinaryFile file ) : Stream
file BinaryFile The file.
Результат Stream

GetPath() публичный Метод

Gets the path.
public GetPath ( BinaryFile file ) : string
file BinaryFile The file.
Результат string

GetUrl() публичный Метод

Generate a URL for the file based on the rules of the StorageProvider
public GetUrl ( BinaryFile file ) : string
file BinaryFile The file.
Результат string

ProviderComponent() публичный Метод

Initializes a new instance of the ProviderComponent class.
public ProviderComponent ( ) : System
Результат System

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

Saves the binary file contents to the external storage medium associated with the provider.
public abstract SaveContent ( BinaryFile file ) : void
file BinaryFile The file.
Результат void