PrivateObject.SetField Method

Definition

Overloads

SetField(String, Object)

Sets the field

public:
 void SetField(System::String ^ name, System::Object ^ value);

Parameters

name
String

Name of the field

value
Object

value to set

Applies to

Visual Studio SDK 2022 and other versions
Product Versions
Visual Studio SDK 2017, 2019, 2022

SetField(String, BindingFlags, Object)

Sets the field

public:
 void SetField(System::String ^ name, System::Reflection::BindingFlags bindingFlags, System::Object ^ value);

Parameters

name
String

Name of the field

bindingFlags
BindingFlags

A bitmask comprised of one or more BindingFlags that specify how the search is conducted.

value
Object

value to set

Applies to

Visual Studio SDK 2022 and other versions
Product Versions
Visual Studio SDK 2017, 2019, 2022