Acquiring a Derived Class from the PropertyObject Class in Microsoft Visual Basic .NET
- 업데이트 날짜:2025-07-23
- 1분 (읽기 시간)
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