Expression::Property Method (Expression^, Type^, String^)

 

Creates a MemberExpression accessing a property.

Namespace:   System.Linq.Expressions
Assembly:  System.Core (in System.Core.dll)

public:
static MemberExpression^ Property(
	Expression^ expression,
	Type^ type,
	String^ propertyName
)

Parameters

expression
Type: System.Linq.Expressions::Expression^

The containing object of the property. This can be null for static properties.

type
Type: System::Type^

The Type that contains the property.

propertyName
Type: System::String^

The property to be accessed.

Universal Windows Platform
Available since 8
.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 4.0
Windows Phone Silverlight
Available since 8.0
Windows Phone
Available since 8.1
Return to top
Show: