BaseProvider Class

 

Defines the base provider for FTP extensibility classes. Most providers will inherit this class in order to implement functionality to retrieve settings from the IIS configuration files through the Initialize Method.

Syntax

public class BaseProvider : MarshalByRefObject, IDisposable
{
   protected virtual void Dispose(bool disposing)
   {
   }
   protected virtual void Initialize(StringDictionary config)
   {
   }
}  
Public Class BaseProvider
   Inherits MarshalByRefObject
   Implements IDisposable
    
   Protected Overridable Sub Dispose(disposing As Boolean)
   End Sub

   Protected Overridable Sub Initialize(config As StringDictionary)
   End Sub
End Class  

Methods

The following table lists the methods exposed by the BaseProvider interface.

Method Name Definition
Dispose Releases the unmanaged resources used by the class, and optionally releases the managed resources.
Initialize Retrieves configuration settings for the class.

Example

For examples of how to use the BaseProvider class, see the following articles:

Requirements

Type Description
Client - IIS 7.5 on Windows 7
- IIS 8.0 on Windows 8
- IIS 10.0 on Windows 10
Server - IIS 7.5 on Windows Server 2008 R2
- 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 7.0, IIS 7.5, IIS 8.0, IIS 8.5, IIS 10.0
Reference Microsoft.Web.FtpServer.dll