C# Класс Moxiecode.Plupload.FileReference

Description of File.
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
CancelUpload ( ) : void

Cancels uploading the current file.

FileReference ( string id, FileInfo info ) : System

Main constructor for the file reference.

Upload ( string upload_url, string json_settings ) : void

Uploads the file to the specific url and using the specified chunk_size.

UploadNextChunk ( ) : bool

Uploads the next chunk if there are more in queue.

Защищенные методы

Метод Описание
OnIOError ( ErrorEventArgs e ) : void
OnProgress ( ProgressEventArgs e ) : void
OnUploadChunkComplete ( UploadEventArgs e ) : void
OnUploadComplete ( UploadEventArgs e ) : void

Приватные методы

Метод Описание
Debug ( string msg ) : void
DisposeStreams ( ) : void
ExtractResponse ( object state ) : void
ReadByteRange ( byte buffer, long position, int offset, int count ) : int
RequestStreamCallback ( IAsyncResult ar ) : void
ResizeImage ( Stream image_stream, int width, int height, int quality, ImageType type ) : Stream
ResponseCallback ( IAsyncResult ar ) : void
StrToByteArray ( string str ) : byte[]

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

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

Cancels uploading the current file.
public CancelUpload ( ) : void
Результат void

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

Main constructor for the file reference.
public FileReference ( string id, FileInfo info ) : System
id string Unique file id for item.
info System.IO.FileInfo FileInfo that got returned from a file selection.
Результат System

OnIOError() защищенный Метод

protected OnIOError ( ErrorEventArgs e ) : void
e ErrorEventArgs
Результат void

OnProgress() защищенный Метод

protected OnProgress ( ProgressEventArgs e ) : void
e ProgressEventArgs
Результат void

OnUploadChunkComplete() защищенный Метод

protected OnUploadChunkComplete ( UploadEventArgs e ) : void
e UploadEventArgs
Результат void

OnUploadComplete() защищенный Метод

protected OnUploadComplete ( UploadEventArgs e ) : void
e UploadEventArgs
Результат void

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

Uploads the file to the specific url and using the specified chunk_size.
public Upload ( string upload_url, string json_settings ) : void
upload_url string URL to upload to.
json_settings string
Результат void

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

Uploads the next chunk if there are more in queue.
public UploadNextChunk ( ) : bool
Результат bool