Skip to main content
.NET Standard 2.0+

XPBaseObject.SetMemberValue(String, Object) Method

Sets the value of the specified property.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v22.1.dll

Declaration

public void SetMemberValue(
    string propertyName,
    object newValue
)

Parameters

Name Type Description
propertyName String

A String value which specifies the property name. If a property with the specified name isn’t found, a InvalidPropertyPathException is thrown.

newValue Object

An object which represents the new value.

The following code snippets (auto-collected from DevExpress Examples) contain references to the SetMemberValue(String, Object) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also