IFtpPreprocessProvider.HandlePreprocess Method
Implements custom functionality before an FTP command is processed.
Syntax
FtpProcessStatus HandlePreprocess(
FtpPreprocessParameters preProcessParameters
)
Private Function HandlePreprocess(
ByVal preProcessParameters As FtpPreprocessParameters
) As FtpProcessStatus
Parameters
Parameter Name | Description |
---|---|
preProcessParameters |
An FtpPreprocessParameters class that defines the information for FTP activity before a command has completed. |
Return Value
An FtpProcessStatus value that contains the status for the request; for example: an application can specify whether to continue or terminate the session.
Example
For examples about creating custom functionality for pre/post processing of FTP commands, see the following articles:
How to Use Managed Code (C#) to Create an FTP Provider that Prevents Leeching
Create an FTP Provider that Sends an Email when Files are Uploaded
Requirements
Type | Description |
---|---|
Client | - IIS 8.0 on Windows 8 - IIS 10.0 on Windows 10 |
Server | - IIS 8.0 on Windows Server 2012 - IIS 8.5 on Windows Server 2012 R2 - IIS 10.0 on Windows Server 2016 Technical Preview |
Product | - IIS 8.0, IIS 8.5, IIS 10.0 |
Reference | Microsoft.Web.FtpServer.dll |
See Also
IFtpPostprocessProvider Interface
IFtpPreprocessProvider Interface