Skip to content

Latest commit

 

History

History
78 lines (67 loc) · 1.75 KB

File metadata and controls

78 lines (67 loc) · 1.75 KB
title id | Microsoft Docs
ms.custom
ms.date 11/04/2016
ms.reviewer
ms.suite
ms.technology
cpp-windows
ms.tgt_pltfrm
ms.topic language-reference
f1_keywords
vc-attr.id
dev_langs
C++
helpviewer_keywords
id attribute
ms.assetid a48d2c99-c5d2-4f46-bf96-5ac88dcb5d0c
caps.latest.revision 9
author mikeblome
ms.author mblome
manager ghogen
translation.priority.ht
cs-cz
de-de
es-es
fr-fr
it-it
ja-jp
ko-kr
pl-pl
pt-br
ru-ru
tr-tr
zh-cn
zh-tw

id

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

Syntax

  
      [ id(  
   dispid  
) ]  

Parameters

dispid
The dispatch ID for the interface method.

Remarks

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

Example

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

Requirements

Attribute Context

Applies to Interface method
Repeatable No
Required attributes None
Invalid attributes None

For more information, see Attribute Contexts.

See Also

IDL Attributes
Method Attributes
Data Member Attributes
defaultvalue
in
out