readonly attribute
The [readonly] attribute prohibits assignment to a variable.
[readonly [, optional-attributes]] data-type identifier
-
optional-attributes
-
Zero or more MIDL attributes.
-
data-type
-
The type of the data contained by identifier.
-
identifier
-
A name by which the software can refer to the data storage location.
The [readonly] attribute prohibits assignment to a variable. [readonly] is only supported at the parameter level, not at the method level.
VARFLAG_FREADONLY
HRESULT Method3([in, readonly] int iMmutable);