Skip to content

Latest commit

 

History

History
86 lines (72 loc) · 2.1 KB

File metadata and controls

86 lines (72 loc) · 2.1 KB
title nonextensible | 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.nonextensible
dev_langs
C++
helpviewer_keywords
nonextensible attribute
ms.assetid c7ef1554-809f-4ea0-a7cd-dc7786d40c3e
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

nonextensible

Specifies that the IDispatch implementation includes only the properties and methods listed in the interface description and cannot be extended with additional members at run time.

Syntax

  
[nonextensible]  
  

Remarks

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

Use of nonextensible also requires the oleautomation attribute.

Example

The following code shows one use of the nonextensible attribute:

// cpp_attr_ref_nonextensible.cpp  
// compile with: /LD  
#include "unknwn.h"  
[module(name="ATLFIRELib")];  
[export] typedef long HRESULT;  
  
[dual, nonextensible, ms_union, oleautomation,   
uuid("00000000-0000-0000-0000-000000000001")]  
__interface IFireTabCtrl  
{  
   HRESULT procedure (int i);   
};  

Requirements

Attribute Context

Applies to interface
Repeatable No
Required attributes dual and oleautomation, or dispinterface
Invalid attributes None

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

See Also

IDL Attributes
Interface Attributes