This documentation is archived and is not being maintained.

ConnectionStringEditor::SetProviderName Method

Puts the provider name on the specified instance of the ConnectionStringEditor class.

Namespace:  System.Web.UI.Design
Assembly:  System.Design (in System.Design.dll)

protected:
virtual void SetProviderName(
	Object^ instance, 
	DesignerDataConnection^ connection
)

Parameters

instance
Type: System::Object
A ConnectionStringEditor or an instance of a derived class.
connection
Type: System.ComponentModel.Design.Data::DesignerDataConnection
A DesignerDataConnection.

The SetProviderName method sets the provider name on the instance parameter. For example, in the SqlDataSourceConnectionStringEditor, which derives from the ConnectionStringEditor class, this either sets the provider name or adds an ExpressionBinding object, if the connection is a configured connection. In this implementation, the SetProviderName method does nothing.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: