readonly
id
in
int
odl
out
ptr
ref
TOC
Collapse the table of content
Expand the table of content

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

TYPEFLAGS
ODL File Syntax
ODL File Example
Generating a Type Library With MIDL

 

 

Community Additions

ADD
Show:
© 2016 Microsoft