Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
COM
id
in
int
odl
out
ptr
ref
Expand Minimize

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:
© 2015 Microsoft