Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+

XPBaseObject.SetMemberValue(String, Object) Method

Sets the value of the specified property.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v19.2.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 snippet (auto-collected from DevExpress Examples) contains a reference 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