Share via


ProviderFactoryElement Class [IIS 7 and higher]

Contains configuration settings for an ADO.NET 2.0 provider factory. 

Syntax

class ProviderFactoryElement : CollectionElement

Methods

This class contains no methods.

Properties

The following table lists the properties exposed by the ProviderFactoryElement class.

Name

Description

Description

A read/write string value that contains the verbose name of the data provider specified in the Name and Invariant properties (for example, ".NET Framework Data Provider for ODBC").

Invariant

A read/write string value that contains the invariant name of the provider that is specified in the Description and Name properties (for example, "System.Data.Odbc"). The invariant name can be passed to the System.Data.Common.DBProviderFactories.GetFactory method to obtain a System.Data.Common.DBProviderFactory object for the provider.

Name

A required unique read/write string value that contains the name of a data provider (for example, "ODBC Data Provider"). The key property.

Type

A read/write string value that specifies the type for the provider specified in the Name, Description, and Invariant properties (for example, "System.Data.Odbc.OdbcFactory, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089").

Subclasses

This class contains no subclasses.

Remarks

Instances of this class are contained in the DbProviderFactories array property of the DbProviderFactorySettings class.

Inheritance Hierarchy

CollectionElement

   ProviderFactoryElement

Requirements

Type

Description

Client

Requires IIS 7 on Windows Vista.

Server

Requires IIS 7 on Windows Server 2008.

Product

IIS 7

MOF file

WebAdministration.mof

See Also

Reference

CollectionElement Class [IIS 7 and higher]

DbProviderFactorySettings Class [IIS 7 and higher]

SystemDataSection Class [IIS 7 and higher]

Other Resources

ADO.NET 2.0 Feature Matrix