共用方式為


MemberAssignment Class

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Represents assignment operation for a field or property of an object.

Inheritance Hierarchy

System.Object
  System.Linq.Expressions.MemberBinding
    System.Linq.Expressions.MemberAssignment

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

Syntax

'Declaration
Public NotInheritable Class MemberAssignment _
    Inherits MemberBinding
public sealed class MemberAssignment : MemberBinding

The MemberAssignment type exposes the following members.

Properties

  Name Description
Public propertySupported by Silverlight for Windows Phone BindingType Gets the type of binding that is represented. (Inherited from MemberBinding.)
Public propertySupported by Silverlight for Windows Phone Expression Gets the expression to assign to the field or property.
Public propertySupported by Silverlight for Windows Phone Member Gets the field or property to be initialized. (Inherited from MemberBinding.)

Top

Methods

  Name Description
Public methodSupported by Silverlight for Windows Phone Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodSupported by Silverlight for Windows Phone Finalize Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public methodSupported by Silverlight for Windows Phone GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public methodSupported by Silverlight for Windows Phone GetType Gets the Type of the current instance. (Inherited from Object.)
Protected methodSupported by Silverlight for Windows Phone MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public methodSupported by Silverlight for Windows Phone ToString Returns a textual representation of the MemberBinding. (Inherited from MemberBinding.)
Public method Update Creates a new expression that is like this one, but using the supplied children. If all of the children are the same, it will return this expression.

Top

Remarks

Use the Bind factory methods to create a MemberAssignment.

A MemberAssignment has the BindingType property equal to Assignment.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.