Share via


BindingInfo.GetBindingInfo Method

Definition

Overloads

GetBindingInfo(IEnumerable<Object>)

Constructs a new instance of BindingInfo from the given attributes.

This overload does not account for BindingInfo specified via ModelMetadata. Consider using GetBindingInfo(IEnumerable<Object>, ModelMetadata) overload, or TryApplyBindingInfo(ModelMetadata) on the result of this method to get a more accurate BindingInfo instance.

GetBindingInfo(IEnumerable<Object>, ModelMetadata)

Constructs a new instance of BindingInfo from the given attributes and modelMetadata.

GetBindingInfo(IEnumerable<Object>)

Source:
BindingInfo.cs
Source:
BindingInfo.cs
Source:
BindingInfo.cs

Constructs a new instance of BindingInfo from the given attributes.

This overload does not account for BindingInfo specified via ModelMetadata. Consider using GetBindingInfo(IEnumerable<Object>, ModelMetadata) overload, or TryApplyBindingInfo(ModelMetadata) on the result of this method to get a more accurate BindingInfo instance.

public:
 static Microsoft::AspNetCore::Mvc::ModelBinding::BindingInfo ^ GetBindingInfo(System::Collections::Generic::IEnumerable<System::Object ^> ^ attributes);
public static Microsoft.AspNetCore.Mvc.ModelBinding.BindingInfo GetBindingInfo (System.Collections.Generic.IEnumerable<object> attributes);
public static Microsoft.AspNetCore.Mvc.ModelBinding.BindingInfo? GetBindingInfo (System.Collections.Generic.IEnumerable<object> attributes);
static member GetBindingInfo : seq<obj> -> Microsoft.AspNetCore.Mvc.ModelBinding.BindingInfo
Public Shared Function GetBindingInfo (attributes As IEnumerable(Of Object)) As BindingInfo

Parameters

attributes
IEnumerable<Object>

A collection of attributes which are used to construct BindingInfo

Returns

A new instance of BindingInfo.

Applies to

GetBindingInfo(IEnumerable<Object>, ModelMetadata)

Source:
BindingInfo.cs
Source:
BindingInfo.cs
Source:
BindingInfo.cs

Constructs a new instance of BindingInfo from the given attributes and modelMetadata.

public:
 static Microsoft::AspNetCore::Mvc::ModelBinding::BindingInfo ^ GetBindingInfo(System::Collections::Generic::IEnumerable<System::Object ^> ^ attributes, Microsoft::AspNetCore::Mvc::ModelBinding::ModelMetadata ^ modelMetadata);
public static Microsoft.AspNetCore.Mvc.ModelBinding.BindingInfo GetBindingInfo (System.Collections.Generic.IEnumerable<object> attributes, Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata modelMetadata);
public static Microsoft.AspNetCore.Mvc.ModelBinding.BindingInfo? GetBindingInfo (System.Collections.Generic.IEnumerable<object> attributes, Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata modelMetadata);
static member GetBindingInfo : seq<obj> * Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata -> Microsoft.AspNetCore.Mvc.ModelBinding.BindingInfo
Public Shared Function GetBindingInfo (attributes As IEnumerable(Of Object), modelMetadata As ModelMetadata) As BindingInfo

Parameters

attributes
IEnumerable<Object>

A collection of attributes which are used to construct BindingInfo.

modelMetadata
ModelMetadata

The ModelMetadata.

Returns

A new instance of BindingInfo if any binding metadata was discovered; otherwise or null.

Applies to