Skip to content

Latest commit

 

History

History
63 lines (48 loc) · 1.67 KB

File metadata and controls

63 lines (48 loc) · 1.67 KB
title custom (C++) | Microsoft Docs
ms.custom
ms.date 11/04/2016
ms.technology
cpp-windows
ms.topic reference
f1_keywords
vc-attr.custom
dev_langs
C++
helpviewer_keywords
custom attributes, defining
ms.assetid 3abac928-4d55-4ea6-8cf6-8427a4ad79f1
author mikeblome
ms.author mblome
ms.workload
cplusplus
uwp

custom (C++)

Defines metadata for an object in the type library.

Syntax

[ custom(
   uuid,
   value
) ];

Parameters

uuid
A unique ID.

value
A value that can be put into a variant.

Remarks

The custom C++ attribute will cause information to be placed into the type library. You will need a tool that reads the custom value from type library.

The custom attribute has the same functionality as the custom MIDL attribute.

Requirements

Attribute Context

Applies to Non-COM interface, class, enums, idl_module methods, interface members, interface parameters, typedefs, unions, structs
Repeatable Yes
Required attributes coclass (when used on class)
Invalid attributes None

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

See Also

IDL Attributes
Stand-Alone Attributes
Typedef, Enum, Union, and Struct Attributes
Parameter Attributes
Method Attributes
Class Attributes
Interface Attributes