You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you call Device.RefreshProperties, the code fails with an ArgumentException.
The GetPropReceiver attempts to add the properties to the Device.Properties dictionary. But if a property was already present previously, this will result the .Add operation to fail with an ArgumentException.
The best solution probably is to clear the dictionary before refreshing it. That way, stale properties are removed and the GetPropReciever will never encounter this situation.
The text was updated successfully, but these errors were encountered:
Original Bug Filed on CodePlex
If you call Device.RefreshProperties, the code fails with an ArgumentException.
The GetPropReceiver attempts to add the properties to the Device.Properties dictionary. But if a property was already present previously, this will result the .Add operation to fail with an ArgumentException.
The best solution probably is to clear the dictionary before refreshing it. That way, stale properties are removed and the GetPropReciever will never encounter this situation.
The text was updated successfully, but these errors were encountered: