QueryParameterViewModel.Create(IQueryParameter, IEnumerable<IParameter>, Boolean) Method

Creates a new QueryParameterViewModel class descendant supporting the INotifyPropertyChanged interface.

Namespace: DevExpress.Xpf.DataAccess.DataSourceWizard

Assembly: DevExpress.Xpf.DataAccess.v20.1.dll

Declaration

public static QueryParameterViewModel Create(
    IQueryParameter queryParameter,
    IEnumerable<IParameter> sourceParameters,
    bool fixedParameter
)
Public Shared Function Create(
    queryParameter As IQueryParameter,
    sourceParameters As IEnumerable(Of IParameter),
    fixedParameter As Boolean
) As QueryParameterViewModel

Parameters

Name Type Description
queryParameter IQueryParameter

An object implementing the IQueryParameter interface.

sourceParameters IEnumerable<IParameter>

A collection of objects implementing the IParameter interface.

fixedParameter Boolean

true, if only the parameter value can be edited; otherwise, false. This value is assigned to the ParameterViewModel.IsFixedParameter property.

Returns

Type Description
QueryParameterViewModel

A QueryParameterViewModel object.

See Also