System.Web.UI.Design.ConnectionStringEditor.SetProviderName Method

Puts the provider name on the specified instance of the System.Web.UI.Design.ConnectionStringEditor class.

Syntax

protected virtual void SetProviderName (object instance, System.ComponentModel.Design.Data.DesignerDataConnection connection)

Parameters

instance
A System.Web.UI.Design.ConnectionStringEditor or an instance of a derived class.
connection
A System.ComponentModel.Design.Data.DesignerDataConnection.

Remarks

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

Requirements

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