DynamicAttributes.TryGetMember Method

Returns the value of an attribute. This element is introduced in Windows PowerShell 5.0.

Namespace: Microsoft.OneGet.Utility.Xml
Assembly: Microsoft.OneGet.Utility (in Microsoft.OneGet.Utility.dll)

Usage

'Usage
Dim instance As DynamicAttributes
Dim binder As GetMemberBinder
Dim result As Object
Dim returnValue As Boolean

returnValue = instance.TryGetMember(binder, result)

Syntax

'Declaration
Public Overrides Function TryGetMember ( _
    binder As GetMemberBinder, _
    <OutAttribute> ByRef result As Object _
) As Boolean
public override bool TryGetMember (
    GetMemberBinder binder,
    out Object result
)
public:
virtual bool TryGetMember (
    GetMemberBinder^ binder, 
    [OutAttribute] Object^% result
) override
public boolean TryGetMember (
    GetMemberBinder binder, 
    /** @attribute OutAttribute() */ /** @ref */ Object result
)

Parameters

  • binder
    The attribute name.
  • result
    The value of the specified attribute.

Return Value

Returns true if successful; false on error.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Target Platforms

See Also

Reference

DynamicAttributes Class
DynamicAttributes Members
Microsoft.OneGet.Utility.Xml Namespace