Acquiring a Derived Class from the PropertyObject Class in Microsoft Visual Basic .NET
- Updated2025-07-23
- 1 minute(s) read
In Microsoft Visual Basic .NET, you can acquire a derived class from a dynamic property the PropertyObject class returns.
The following code uses a lookup string to obtain a reference to a Step object from the sequence context:
Private Sub Example (ContextObj As SequenceContext)
Dim PropertyObj as PropertyObject
Dim StepObj as Step
Set PropertyObj = ContextObj.AsPropertyObject()
StepObj = PropertyObj.GetPropertyObject("RunState.Sequence.Main[2]", 0)
End Sub