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.

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0
Show: