I've never used it before but I think you should simply declare a new Object and use that, something like this:
Whether this is the right approach in a property, I've no idea.Code:Dim obj As New Object() Public Shared Property someproperty() As Boolean Get Return VAR_propvalue End Get Set(ByVal value As Boolean) SyncLock obj VAR_propvalue = value End SyncLock End Set End Property




Reply With Quote