readonly attribute
The [readonly] attribute prohibits assignment to a variable.
[readonly [, optional-attributes]] data-type identifier
Parameters
-
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.
Remarks
The [readonly] attribute prohibits assignment to a variable. [readonly] is only supported at the parameter level, not at the method level.
Flags
VARFLAG_FREADONLY
Examples
HRESULT Method3([in, readonly] int iMmutable);
See also
Váš názor
https://aka.ms/ContentUserFeedback.
Připravujeme: V průběhu roku 2024 budeme postupně vyřazovat problémy z GitHub coby mechanismus zpětné vazby pro obsah a nahrazovat ho novým systémem zpětné vazby. Další informace naleznete v tématu:Odeslat a zobrazit názory pro