Generated by DocFX

Class FileResult

Class FileResult.

Inheritance
System.Object
FileResult
Namespace: ISynergy.Framework.Mvvm.Models
Assembly: ISynergy.Framework.Mvvm.dll
Syntax
public sealed class FileResult : IDisposable

Constructors

View Source

FileResult(String, String, Func<Stream>, Action<Boolean>)

Initializes a new instance of the FileResult class.

Declaration
public FileResult(string filePath, string fileName, Func<Stream> streamGetter, Action<bool> dispose = null)
Parameters
Type Name Description
System.String filePath

The file path.

System.String fileName

Name of the file.

Func<Stream> streamGetter

The stream getter.

Action<System.Boolean> dispose

The dispose.

Properties

View Source

File

Gets or sets the file.

Declaration
public byte[] File { get; }
Property Value
Type Description
System.Byte[]

The file.

View Source

FileName

Filename of the picked file, without path

Declaration
public string FileName { get; set; }
Property Value
Type Description
System.String

The name of the file.

View Source

FilePath

Full filepath of the picked file. Note that on specific platforms this can also contain an URI that can't be opened with file related APIs. Use DataArray property or GetStream() method in this cases.

Declaration
public string FilePath { get; set; }
Property Value
Type Description
System.String

The file path.

Methods

View Source

Dispose()

Disposes of all resources in the object

Declaration
public void Dispose()
View Source

Finalize()

Finalizer for this object

Declaration
protected void Finalize()
View Source

GetStream()

Gets stream to access the picked file. Note that when DataArray property was already accessed, the stream must be rewinded to the beginning.

Declaration
public Stream GetStream()
Returns
Type Description
Stream

stream object

Extension Methods

Matrix.Replace<T>(T, Object, Object)
Matrix.IsEqual(Object, Object, Decimal, Decimal)
EntityBaseExtensions.HasProperty(Object, String)
ArrayExtensions.Concatenate<T>(T, T[])
CollectionExtensions.FromHierarchy<TSource>(TSource, Func<TSource, TSource>, Func<TSource, Boolean>)
CollectionExtensions.FromHierarchy<TSource>(TSource, Func<TSource, TSource>)
ObjectExtensions.Clone<T>(T)
ObjectExtensions.To<T>(Object)
ObjectExtensions.To(Object, Type)
ObjectExtensions.HasMethod(Object, String)
ObjectExtensions.AddressOf<T>(T)
ReflectionExtensions.GetIdentityValue<T>(T)
ReflectionExtensions.GetIdentityValue<T, TResult>(T)
ReflectionExtensions.GetIdentityProperty<T>(T)
ReflectionExtensions.HasIdentityProperty<T>(T)
ReflectionExtensions.GetPropertyValue<T, TResult>(T, String, TResult)
ReflectionExtensions.GetPropertyInfo<T, TValue>(T, Expression<Func<T, TValue>>)
ReflectionExtensions.GetTitleValue<T>(T)
ReflectionExtensions.HasParentIdentityProperty<T>(T)
ReflectionExtensions.GetParentIdentityProperty<T>(T)
ReflectionExtensions.IsFreeApplication<T>(T)