DynamicRecord.TryGetMember(GetMemberBinder, Object) Method
Definition
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.
Gets the value of a DynamicRecord member using the specified name.
public override bool TryGetMember (System.Dynamic.GetMemberBinder binder, out object result);
override this.TryGetMember : System.Dynamic.GetMemberBinder * obj -> bool
Public Overrides Function TryGetMember (binder As GetMemberBinder, ByRef result As Object) As Boolean
Parameters
- binder
- GetMemberBinder
Provides information about the get operation.
- result
- Object
When this method returns, contains the value of the member, which can be null. This parameter is passed uninitialized.
Returns
true in all cases.
Exceptions
The DynamicRecord instance does not contain a member whose name is a case-insensitive match with the name that is specified by the binder
parameter.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for