Menu

keywords-set

Will Pittenger

Used to declare a set accessor that sets the value of a property. Each set accessor is required to reference the value stored in the value keyword. A set accessor can override any of the following procedure modifiers that were applied to the property: virtual, abstract, and final. A property that's declared as const or readonly may not declare a set accessor. The other accessor a property may have is the get** accessor.

(\public\ | \protected\ | \private\) {[\static\] | [\virtual\] | [\final\] | [\abstract\]} \property\ /TypeDescriptor/ /identifier/
  [{[\virtual\] | [\final\] | [\abstract\]} \get\
    ' Return some value
  ]

  [{[\virtual\] | [\final\] | [\abstract\]} \set\
    ' Store the value in \value\ somewhere
  ]

Related

Wiki: Keywords
Wiki: When is it a procedure, command, function, property, property accessor, method, complex statement, or type cast?
Wiki: keywords-abstract
Wiki: keywords-const
Wiki: keywords-final
Wiki: keywords-get
Wiki: keywords-property
Wiki: keywords-readonly
Wiki: keywords-static
Wiki: keywords-value
Wiki: keywords-virtual