共用方式為


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

Reference

defaultvalue

id

out (C++)

Other Resources

IDL Attributes

Parameter Attributes

Method Attributes

Attributes Samples