JSFieldInfo.SetValue Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the value of the field.
SetValue(Object, Object) |
This API supports the product infrastructure and is not intended to be used directly from your code. Sets the value of the field, using the specified value. |
SetValue(Object, Object, BindingFlags, Binder, CultureInfo) |
This API supports the product infrastructure and is not intended to be used directly from your code. Sets the value of the field, using the specified value, culture, and binding information. |
Sets the value of the field, using the specified value.
This API supports the product infrastructure and is not intended to be used directly from your code.
public:
void SetValue(System::Object ^ obj, System::Object ^ value);
public void SetValue(object obj, object value);
override this.SetValue : obj * obj -> unit
Public Sub SetValue (obj As Object, value As Object)
Parameters
- obj
- Object
The object whose field value will be set.
- value
- Object
The value to assign to the field.
See also
Applies to
.NET Framework 4.8.1 i inne wersje
Produkt | Wersje |
---|---|
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Sets the value of the field, using the specified value, culture, and binding information.
This API supports the product infrastructure and is not intended to be used directly from your code.
public:
override void SetValue(System::Object ^ obj, System::Object ^ value, System::Reflection::BindingFlags invokeAttr, System::Reflection::Binder ^ binder, System::Globalization::CultureInfo ^ culture);
public override void SetValue(object obj, object value, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Globalization.CultureInfo culture);
override this.SetValue : obj * obj * System.Reflection.BindingFlags * System.Reflection.Binder * System.Globalization.CultureInfo -> unit
Public Overrides Sub SetValue (obj As Object, value As Object, invokeAttr As BindingFlags, binder As Binder, culture As CultureInfo)
Parameters
- obj
- Object
The object whose field value will be set.
- value
- Object
The value to assign to the field.
- invokeAttr
- BindingFlags
A bitwise combination of the enumeration values that control the binding.
- binder
- Binder
A set of properties that enables the binding, coercion of argument types, and invocation of members through reflection.
- culture
- CultureInfo
Provides information about a specific culture or locale. Used to format numbers, dates, and strings correctly.
See also
Applies to
.NET Framework 4.8.1 i inne wersje
Produkt | Wersje |
---|---|
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Opinia o produkcie .NET
.NET to projekt typu open source. Wybierz link, aby przekazać opinię: