Skip to the content.

FileExtensionValidationRule.Execute method (1 of 2)

Executes the rule which should throw an exception of type !:TException.

public void Execute(IFileServiceConfig fileServiceConfig, byte[] inputBytes, string fileType, 
    string fileName = null)
parameter description
TException The type of exception which would be thrown in case of failure.
fileServiceConfig The file service config to validate against.
inputBytes The byte array which contains the file.
fileType The type of file.
fileName Name of the file (this might be null at times).

See Also


FileExtensionValidationRule.Execute method (2 of 2)

Executes the rule which should throw an exception of type !:TException.

public void Execute(IFileServiceConfig fileServiceConfig, Stream inputStream, string fileType, 
    string fileName = null)
parameter description
TException The type of exception which would be thrown in case of failure.
fileServiceConfig The file service config to validate against.
inputStream The stream which contains the file.
fileType The type of file.
fileName Name of the file (this might be null at times).

See Also