Udostępnij za pośrednictwem


Properties declared 'ReadOnly' cannot have a 'Set'

The Set procedure writes the value of a property. ReadOnly properties cannot be written.

Error ID: BC30022

To correct this error

  • Remove the ReadOnly keyword from the Property statement, or remove the Set procedure from the property body.

See Also

Reference

Property Statement

Set Statement (Visual Basic)

ReadOnly (Visual Basic)