CreateIntegrity Method
Definition
- Assemblies
- Cuemon.Data.Integrity.dll
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
fileFileInfoThe FileInfo to convert.
setupAction<FileIntegrityOptions>The FileIntegrityOptions which need to be configured.
Returns
- IDataIntegrity
An object implementing the IDataIntegrity interface that represents the integrity of
file.
Exceptions
- ArgumentNullException
filecannot be null.