MemberValueAccessBuilder.GetPropertyValueAccess Method
Creates a ValueAccess suitable for accessing the value for propertyInfo.
Namespace: Microsoft.Practices.EnterpriseLibrary.Validation
Assembly: Microsoft.Practices.EnterpriseLibrary.Validation (in Microsoft.Practices.EnterpriseLibrary.Validation.dll) Version: 6.0.0.0 (6.0.1304.0)
Syntax
public ValueAccess GetPropertyValueAccess(
PropertyInfo propertyInfo
)
'Declaration
Public Function GetPropertyValueAccess (
propertyInfo As PropertyInfo
) As ValueAccess
public:
ValueAccess^ GetPropertyValueAccess(
PropertyInfo^ propertyInfo
)
Parameters
- propertyInfo
Type: System.Reflection.PropertyInfo
The PropertyInfo
Return Value
Type: ValueAccess
The ValueAccess that allows for accessing the value in propertyInfo.
Exceptions
Exception | Condition |
---|---|
System.ArgumentNullException | when propertyInfo is nulla null reference (Nothing in Visual Basic). |
See Also
MemberValueAccessBuilder Class