Export (0) Print
Expand All

DynamicMetaObject.Create Method

Creates a meta-object for the specified object.

Namespace:  System.Dynamic
Assemblies:   System.Core (in System.Core.dll)
  System.Dynamic.Runtime (in System.Dynamic.Runtime.dll)

public static DynamicMetaObject Create(
	Object value,
	Expression expression


Type: System.Object

The object to get a meta-object for.

Type: System.Linq.Expressions.Expression

The expression representing this DynamicMetaObject during the dynamic binding process.

Return Value

Type: System.Dynamic.DynamicMetaObject
If the given object implements IDynamicMetaObjectProvider and is not a remote object from outside the current AppDomain, returns the object's specific meta-object returned by GetMetaObject. Otherwise a plain new meta-object with no restrictions is created and returned.

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4

Portable Class Library

Supported in: Portable Class Library

Supported in: Windows Phone 8.1

Supported in: Windows Phone Silverlight 8.1

Supported in: Windows Phone Silverlight 8
© 2015 Microsoft