C# Класс rosette_api.RosetteFile

RosetteFile Class

RosetteFile: Custom Datatype containing information about files for upload, and methods to read the files

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

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

Метод Описание
AsMultipart ( ) : System.Net.Http.MultipartFormDataContent

AsMultipart creates a multipart form data object containing the file contents, aka "content" and, optionally, the options, identified as "request".

Dispose ( ) : void

Dispose method for RosetteFile - cleans things up

RosetteFile ( string fileName, string contentType = "text/plain", string options = null ) : System

RosetteFile

RosetteFile: Custom Datatype containing information about files for upload, and methods to read the files

getFileData ( ) : byte[]

getFileData

getFileData: Get the FileData in byte form

getFileDataString ( ) : string

getFileDataString

getFileDataString: Get the FileData in string form

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

Метод Описание
Dispose ( bool disposing ) : void

Virtual Dispose that is actually used by the class

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

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

AsMultipart creates a multipart form data object containing the file contents, aka "content" and, optionally, the options, identified as "request".
public AsMultipart ( ) : System.Net.Http.MultipartFormDataContent
Результат System.Net.Http.MultipartFormDataContent

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

Dispose method for RosetteFile - cleans things up
public Dispose ( ) : void
Результат void

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

Virtual Dispose that is actually used by the class
protected Dispose ( bool disposing ) : void
disposing bool
Результат void

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

RosetteFile

RosetteFile: Custom Datatype containing information about files for upload, and methods to read the files

public RosetteFile ( string fileName, string contentType = "text/plain", string options = null ) : System
fileName string string: Path to the data file
contentType string (string, optional): Description of the content type of the data file. "text/plain" is used if unsure.
options string (string, optional): Json string to add extra information
Результат System

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

getFileData

getFileData: Get the FileData in byte form

public getFileData ( ) : byte[]
Результат byte[]

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

getFileDataString

getFileDataString: Get the FileData in string form

public getFileDataString ( ) : string
Результат string