id

 

For the latest documentation on Visual Studio 2017 RC, see Visual Studio 2017 RC Documentation.

Specifies a dispid parameter for a member function (either a property or a method, in an interface or dispinterface).

  
      [ id(  
   dispid  
) ]  

Parameters

dispid
The dispatch ID for the interface method.

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

See the example for bindable for an example of how to use id.

Attribute Context

Applies toInterface method
RepeatableNo
Required attributesNone
Invalid attributesNone

For more information, see Attribute Contexts.

IDL Attributes
Method Attributes
Data Member Attributes
defaultvalue
in
out
Attributes Samples

Show: