The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
DynamicScriptObject::TrySetMember Method (SetMemberBinder^, Object^)
.NET Framework (current version)
This API supports the product infrastructure and is not intended to be used directly from your code.
Sets a member on the script object to the specified value.
Assembly: PresentationFramework (in PresentationFramework.dll)
Parameters
- binder
-
Type:
System.Dynamic::SetMemberBinder^
The binder provided by the call site.
- value
-
Type:
System::Object^
The value to set for the member.
| Exception | Condition |
|---|---|
| ArgumentNullException | binder is null. -or- indexes is null. |
| ArgumentException | The length of indexes is not equal to 1. |
| ArgumentOutOfRangeException | The first indexes value is null. |
| MissingMemberException | The member does not exist. |
The TrySetMember method throws an exception if an invalid access is attempted.
.NET Framework
Available since 4.0
Available since 4.0
Show: