Back to Devexpress

IMemberInfo.SetValue(Object, Object) Method

expressappframework-devexpress-dot-expressapp-dot-dc-dot-imemberinfo-dot-setvalue-x28-system-dot-object-system-dot-object-x29.md

latest2.3 KB
Original Source

IMemberInfo.SetValue(Object, Object) Method

Changes the member’s value.

Namespace : DevExpress.ExpressApp.DC

Assembly : DevExpress.ExpressApp.v25.2.dll

NuGet Package : DevExpress.ExpressApp

Declaration

csharp
void SetValue(
    object obj,
    object value
)
vb
Sub SetValue(
    obj As Object,
    value As Object
)

Parameters

NameTypeDescription
objObject

An object whose value must be set.

| | value | Object |

An object representing the new value.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the SetValue(Object, 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.

xaf-win-enable-inplace-editing-in-tree-list-view/CS/EFCore/TreeListInplaceEF/TreeListInplaceEF.Win/Controllers/TreeListInplaceEditViewController.cs#L85

csharp
if (focusedColumnMemberInfo != null) {
    focusedColumnMemberInfo.SetValue(focusedObject, newValue);
}

See Also

IMemberInfo Interface

IMemberInfo Members

DevExpress.ExpressApp.DC Namespace