CompositeBindingSource Class¶
A Microsoft.AspNetCore.Mvc.ModelBinding.CompositeBindingSource.BindingSources which can repesent multiple value-provider data sources.
- Namespace
Microsoft.AspNetCore.Mvc.ModelBinding- Assemblies
- Microsoft.AspNetCore.Mvc.Abstractions
Syntax¶
public class CompositeBindingSource : BindingSource, IEquatable<BindingSource>
-
class
Microsoft.AspNetCore.Mvc.ModelBinding.CompositeBindingSource
Properties¶
-
Microsoft.AspNetCore.Mvc.ModelBinding.CompositeBindingSource.BindingSources¶ Gets the set of
Microsoft.AspNetCore.Mvc.ModelBinding.BindingSourceentries.Return type: System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource> public IEnumerable<BindingSource> BindingSources { get; }
-
Methods¶
-
CanAcceptDataFrom(Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource)¶ Return type: System.Boolean public override bool CanAcceptDataFrom(BindingSource bindingSource)
-
Create(System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource>, System.String)¶ Creates a new
Microsoft.AspNetCore.Mvc.ModelBinding.CompositeBindingSource.Arguments: - bindingSources (System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource>) – The set of
Microsoft.AspNetCore.Mvc.ModelBinding.BindingSourceentries. Must be value-provider sources and user input. - displayName (System.String) – The display name for the composite source.
Return type: Microsoft.AspNetCore.Mvc.ModelBinding.CompositeBindingSource
Returns: A
Microsoft.AspNetCore.Mvc.ModelBinding.CompositeBindingSource.public static CompositeBindingSource Create(IEnumerable<BindingSource> bindingSources, string displayName)
- bindingSources (System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource>) – The set of
-