EntityDataSource.SelectParameters Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the collection of parameters that are used to create the projection.
public:
property System::Web::UI::WebControls::ParameterCollection ^ SelectParameters { System::Web::UI::WebControls::ParameterCollection ^ get(); };
[System.ComponentModel.Browsable(false)]
[System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.InnerProperty)]
public System.Web.UI.WebControls.ParameterCollection SelectParameters { get; }
[<System.ComponentModel.Browsable(false)>]
[<System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.InnerProperty)>]
member this.SelectParameters : System.Web.UI.WebControls.ParameterCollection
Public ReadOnly Property SelectParameters As ParameterCollection
Property Value
The parameters that are used for creating the projection.
- Attributes
Remarks
Like the Select method of the ObjectQuery<T> class, parameters can be passed to the projection that is defined by the Select property. The SelectParameters property of the EntityDataSource control specifies a ParameterCollection that contains the parameters to supply to the SELECT statement of the query. The SelectParameters property uses named arguments to refer to the parameters that are specified in the string that is supplied to the Select property.
If the SelectParameters property is not set, no parameter substitution is made. All the parameter names in the SELECT statement, prefixed by the "@"
symbol,
must have a matching name in the ParameterCollection. Null values are not allowed for parameters in a ParameterCollection.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om