共用方式為


in (C++)

Indicates that a parameter is to be passed from the calling procedure to the called procedure.

[in]

Remarks

The in C++ attribute has the same functionality as the in MIDL attribute.

Example

See bindable for an example of how to use in.

Requirements

Attribute Context

Applies to

Interface parameter, interface method

Repeatable

No

Required attributes

None

Invalid attributes

retval

For more information about the attribute contexts, see Attribute Contexts.

See Also

Concepts

IDL Attributes

Parameter Attributes

Method Attributes

defaultvalue

id

out (C++)

ATL Samples