Click or drag to resize

PdfStorageAdapter Constructor (PdfStorageProvider)

Initializes a new instance of the PdfStorageAdapter class when given a string that contains the MS SQL Server connection string.

Namespace:  RadPdf.Integration
Assembly:  RadPdf (in RadPdf.dll) Version: 3.48.0.0 (3.48.0.0)
Syntax
public PdfStorageAdapter(
	PdfStorageProvider provider
)

Parameters

provider
Type: RadPdf.IntegrationPdfStorageProvider
The PdfStorageProvider used to access the storage used by RAD PDF.
Remarks
This constructor can be used independently of an ASP.NET Web application configured for use with RAD PDF.
Examples
C#
using(PdfStorageProvider provider = new SqlServerPdfStorageProvider("Server=.;Database=RadPdf;Trusted_Connection=Yes"))
{
    using(PdfStorageAdapter adapter = new PdfStorageAdapter(provider))
    {
        adapter.RemoveExpiredDocumentKeys();
    }
}
See Also