C# Class Rock.Storage.Provider.FileSystem

Inheritance: ProviderComponent
Exibir arquivo Open project: NewSpring/Rock

Public Methods

Method Description
DeleteContent ( BinaryFile binaryFile ) : void

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

GetContentStream ( BinaryFile binaryFile ) : Stream

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

GetPath ( BinaryFile file ) : string

Gets the path.

SaveContent ( BinaryFile binaryFile ) : void

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

Private Methods

Method Description
GetFilePath ( BinaryFile binaryFile ) : string

Gets the file path.

GetRelativePath ( BinaryFile binaryFile ) : string

Gets the relative path.

Method Details

DeleteContent() public method

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

GetContentStream() public method

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

GetPath() public method

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

SaveContent() public method

Saves the binary file contents to the external storage medium associated with the provider.
File Data must not be null.
public SaveContent ( BinaryFile binaryFile ) : void
binaryFile BinaryFile The binary file.
return void