Table of Contents

CreateIntegrity Method

Definition

Namespace
Cuemon.Data.Integrity
Assemblies
Cuemon.Data.Integrity.dll
Source
src/Cuemon.Data.Integrity/DataIntegrityFactory.cs

CreateIntegrity(FileInfo, Action<FileIntegrityOptions>)

Creates and returns an object implementing the IDataIntegrity interface from the specified file.

public static IDataIntegrity CreateIntegrity(FileInfo file, Action<FileIntegrityOptions> setup)

Parameters

file FileInfo

The FileInfo to convert.

setup Action<FileIntegrityOptions>

The FileIntegrityOptions which need to be configured.

Returns

IDataIntegrity

An object implementing the IDataIntegrity interface that represents the integrity of file.

Exceptions

ArgumentNullException

file cannot be null.