Nuta
Dostęp do tej strony wymaga autoryzacji. Możesz spróbować się zalogować lub zmienić katalog.
Dostęp do tej strony wymaga autoryzacji. Możesz spróbować zmienić katalogi.
Get metadata for the specified property.
Namespace: System.Web.Http.Metadata
Assembly: System.Web.Http (in System.Web.Http.dll)
Syntax
'Declaration
Public MustOverride Function GetMetadataForProperty ( _
modelAccessor As Func(Of Object), _
containerType As Type, _
propertyName As String _
) As ModelMetadata
'Usage
Dim instance As ModelMetadataProvider
Dim modelAccessor As Func(Of Object)
Dim containerType As Type
Dim propertyName As String
Dim returnValue As ModelMetadata
returnValue = instance.GetMetadataForProperty(modelAccessor, _
containerType, propertyName)
public abstract ModelMetadata GetMetadataForProperty(
Func<Object> modelAccessor,
Type containerType,
string propertyName
)
public:
virtual ModelMetadata^ GetMetadataForProperty(
Func<Object^>^ modelAccessor,
Type^ containerType,
String^ propertyName
) abstract
abstract GetMetadataForProperty :
modelAccessor:Func<Object> *
containerType:Type *
propertyName:string -> ModelMetadata
public abstract function GetMetadataForProperty(
modelAccessor : Func<Object>,
containerType : Type,
propertyName : String
) : ModelMetadata
Parameters
modelAccessor
Type: System.Func<Object>The model accessor.
containerType
Type: System.TypeThe type of the container.
propertyName
Type: System.StringThe property to get the metadata model for.
Return Value
Type: System.Web.Http.Metadata.ModelMetadata
The metadata model for the specified property.