ConnectionStringEditor::SetProviderName Method (Object^, DesignerDataConnection^)

 

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
Available since 2.0
Return to top
Show: