C# Класс Google.GData.Client.MediaFileSource

a file based implementation. Takes a filename as it's base working mode
Наследование: MediaSource
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
CopyStream void

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

Метод Описание
GetDataStream ( ) : Stream

returns the stream for the file. The file will be opened in readonly mode note, the caller has to release the resource

MediaFileSource ( Stream data, string fileName, string contentType ) : System

constructor. note that you can override the slug header without influencing the filename

MediaFileSource ( string fileName, string contentType ) : System

constructor. note that you can override the slug header without influencing the filename

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

Метод Описание
CopyStream ( Stream input, Stream output ) : void

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

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

returns the stream for the file. The file will be opened in readonly mode note, the caller has to release the resource
public GetDataStream ( ) : Stream
Результат Stream

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

constructor. note that you can override the slug header without influencing the filename
public MediaFileSource ( Stream data, string fileName, string contentType ) : System
data Stream The stream for the file. If this constructor is used, the filename is only /// used for descriptive purposes, the data will be read from the passed stream
fileName string the file to be used, this will be the default slug header
contentType string the content type to be used
Результат System

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

constructor. note that you can override the slug header without influencing the filename
public MediaFileSource ( string fileName, string contentType ) : System
fileName string the file to be used, this will be the default slug header
contentType string the content type to be used
Результат System