PolyToolkit.PolyFile

Represents a Poly file.

Summary

Constructors and Destructors

PolyFile(string relativePath, string url, string contentType)

Public attributes

contentType
string
The content type of this file.
contents
byte[]
Binary contents of this file.
relativePath
string
The relative path of the file in the local filesystem when it was uploaded.
url
string
The URL at which the contents of this file can be retrieved.

Properties

Text
string
Returns the contents of this file as text.

Public functions

ToString()
override string

Public attributes

contentType

string contentType

The content type of this file.

For example, "text/plain".

contents

byte[] contents

Binary contents of this file.

Only available after fetched.

relativePath

string relativePath

The relative path of the file in the local filesystem when it was uploaded.

For resource files, the path is relative to the root file. This always includes the name fo the file, and may or may not include a directory path.

url

string url

The URL at which the contents of this file can be retrieved.

Properties

Text

string Text

Returns the contents of this file as text.

Public functions

PolyFile

 PolyFile(
  string relativePath,
  string url,
  string contentType
)

ToString

override string ToString()