Share via


DynamicRecord.TryGetMember Method

Gets the value of a DynamicRecord member using the specified name.

Namespace:  WebMatrix.Data
Assembly:  WebMatrix.Data (in WebMatrix.Data.dll)

Syntax

'Declaration
Public Overrides Function TryGetMember ( _
    binder As GetMemberBinder, _
    <OutAttribute> ByRef result As Object _
) As Boolean
'Usage
Dim instance As DynamicRecord 
Dim binder As GetMemberBinder 
Dim result As Object 
Dim returnValue As Boolean 

returnValue = instance.TryGetMember(binder, _
    result)
public override bool TryGetMember(
    GetMemberBinder binder,
    out Object result
)
public:
virtual bool TryGetMember(
    GetMemberBinder^ binder, 
    [OutAttribute] Object^% result
) override
abstract TryGetMember : 
        binder:GetMemberBinder * 
        result:Object byref -> bool  
override TryGetMember : 
        binder:GetMemberBinder * 
        result:Object byref -> bool
public override function TryGetMember(
    binder : GetMemberBinder, 
    result : Object
) : boolean

Parameters

  • result
    Type: System.Object%
    When this method returns, contains the value of the member, which can be null reference (Nothing in Visual Basic). This parameter is passed uninitialized.

Return Value

Type: System.Boolean
true in all cases.

Exceptions

Exception Condition
InvalidOperationException

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.

See Also

Reference

DynamicRecord Class

WebMatrix.Data Namespace