Class FileParameter
Represents a File passed to the API as a Parameter, allows using different backends for files
Inheritance
Namespace: Telerik.CallHome.OpenAPI.Client
Assembly: Telerik.Windows.Controls.dll
Syntax
public class FileParameter : Object
Constructors
FileParameter(Stream)
Construct a FileParameter just from the contents, will extract the filename from a filestream
Declaration
public FileParameter(Stream content)
Parameters
System.IO.Stream
content
The file content |
FileParameter(String, Stream)
Construct a FileParameter from name and content
Declaration
public FileParameter(string filename, Stream content)
Parameters
System.String
filename
The filename |
System.IO.Stream
content
The file content |
FileParameter(String, String, Stream)
Construct a FileParameter from name and content
Declaration
public FileParameter(string filename, string contentType, Stream content)
Parameters
System.String
filename
The filename |
System.String
contentType
The content type of the file |
System.IO.Stream
content
The file content |
Properties
Content
The content of the file
Declaration
public Stream Content { get; set; }
Property Value
System.IO.Stream
|
ContentType
The content type of the file
Declaration
public string ContentType { get; set; }
Property Value
System.String
|
Name
The filename
Declaration
public string Name { get; set; }
Property Value
System.String
|
Operators
Implicit(Stream to FileParameter)
Implicit conversion of stream to file parameter. Useful for backwards compatibility.
Declaration
public static implicit operator FileParameter(Stream s)
Parameters
System.IO.Stream
s
Stream to convert |
Returns
FileParameter
FileParameter |