--- title: "exclude (#import) | Microsoft Docs" ms.custom: "" ms.date: "11/04/2016" ms.reviewer: "" ms.suite: "" ms.technology: ["cpp-tools"] ms.tgt_pltfrm: "" ms.topic: "reference" f1_keywords: ["exclude"] dev_langs: ["C++"] helpviewer_keywords: ["exclude attribute"] ms.assetid: 0883248a-d4bf-420e-9848-807b28fa976e caps.latest.revision: 4 author: "corob-msft" ms.author: "corob" manager: "ghogen" ms.workload: ["cplusplus"] --- # exclude (#import) **C++ Specific** Excludes items from the type library header files being generated. ## Syntax ``` exclude("Name1"[, "Name2",...]) ``` #### Parameters `Name1` First item to be excluded. `Name2` Second item to be excluded (if necessary). ## Remarks Type libraries may include definitions of items defined in system headers or other type libraries. This attribute can take any number of arguments, each being a top-level type library item to be excluded. **END C++ Specific** ## See Also [#import Attributes](../preprocessor/hash-import-attributes-cpp.md) [#import Directive](../preprocessor/hash-import-directive-cpp.md)