ObjectDataSourceDesigner::GetView Method (String^)

 

Returns a data source view with the specified name.

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

public:
virtual DesignerDataSourceView^ GetView(
	String^ viewName
) override

Parameters

viewName
Type: System::String^

A string containing the name of the ObjectDesignerDataSourceView.

Return Value

Type: System.Web.UI.Design::DesignerDataSourceView^

An ObjectDesignerDataSourceView with the name specified by viewName.

The GetView method returns an ObjectDesignerDataSourceView object with the specified name. If viewName is null or an empty string (""), the first view name in the array of names that is returned by GetViewNames is used as the specified name. If no view names are returned by the GetViewNames, GetView generates an unnamed ObjectDesignerDataSourceView.

.NET Framework
Available since 2.0
Return to top
Show: