Xecrets.Sdk.Models.XfFileResult.md

May 26, 2026 · View on GitHub

Xecrets.Sdk

Xecrets.Sdk.Models

XfFileResult Class

Instatiate a new instance of XfFileResult

public class XfFileResult

Inheritance System.Object → XfFileResult

Remarks

If the operation was not successful, the reason for the failure should be implied by the context.

Constructors

XfFileResult(string, string, bool) Constructor

Instatiate a new instance of XfFileResult

public XfFileResult(string? fileName, string? originalFileName, bool success);

Parameters

fileName System.String

The subject file name.

originalFileName System.String

The original file name, when relevant after decryption

success System.Boolean

A System.Boolean indicating if the operation on the file was successful or not.

Remarks

If the operation was not successful, the reason for the failure should be implied by the context.

Properties

XfFileResult.FileName Property

The subject file name.

public string FileName { get; }

Property Value

System.String

XfFileResult.OriginalFileName Property

The original file name, when relevant after decryption

public string OriginalFileName { get; }

Property Value

System.String

XfFileResult.Success Property

A System.Boolean indicating if the operation on the file was successful or not.

public bool Success { get; }

Property Value

System.Boolean

XfFileResult.Value Property

The file content, if any, as a byte array.

public byte[] Value { get; init; }

Property Value

System.Byte[]