C# 클래스 rosette_api.RosetteFile

RosetteFile Class

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

파일 보기 프로젝트 열기: rosette-api/csharp 1 사용 예제들

공개 메소드들

메소드 설명
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