| title |
version (C++) | Microsoft Docs |
| ms.custom |
|
| ms.date |
11/04/2016 |
| ms.reviewer |
|
| ms.suite |
|
| ms.technology |
|
| ms.tgt_pltfrm |
|
| ms.topic |
language-reference |
| f1_keywords |
|
| dev_langs |
|
| helpviewer_keywords |
version attribute |
version information, version attribute |
|
| ms.assetid |
db6ce5d8-82c2-4329-b1a8-8ca2f67342cb |
| caps.latest.revision |
10 |
| 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 |
|
Identifies a particular version among multiple versions of a class.
version
The version number of the coclass. If not specified, 1.0 will be placed in the .idl file.
Remarks
The version C++ attribute has the same functionality as the version MIDL attribute and is passed through to the generated .idl file.
See the bindable example for a sample use of version.
|
|
| Applies to |
class, struct |
| Repeatable |
No |
| Required attributes |
coclass |
| Invalid attributes |
None |
For more information about the attribute contexts, see Attribute Contexts.
Compiler Attributes
Class Attributes