Class StringResult

Class StringResult

Namespace: Aspose.Page.Plugins
Assembly: Aspose.Page.dll (25.1.2)

Represents operation result in the form of string.

public sealed class StringResult : IOperationResult

Inheritance

objectStringResult

Implements

IOperationResult

Inherited Members

object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Properties

Data

Gets raw data.

public object Data { get; }

Property Value

object

IsByteArray

Indicates whether the result is a byte array.

public bool IsByteArray { get; }

Property Value

bool

IsFile

Indicates whether the result is a path to an output file.

public bool IsFile { get; }

Property Value

bool

IsStream

Indicates whether the result is a path to an output file.

public bool IsStream { get; }

Property Value

bool

IsString

Indicates whether the result is a string.

public bool IsString { get; }

Property Value

bool

Text

Returns string representation of the result.

public string Text { get; }

Property Value

string

Methods

ToFile()

Tries to convert the result to a file.

public string ToFile()

Returns

string

A string representing the path to the output file if the result is file; otherwise null.

ToStream()

Tries to convert the result to a stream object.

public Stream ToStream()

Returns

Stream

A stream object representing the output data if the result is stream; otherwise null.

ToString()

Tries to convert the result to a string.

public override string ToString()

Returns

string

A string representing the text content if the result is string; otherwise returns base.ToString().

 English