--- description: "Learn more about: defaultbind" title: "defaultbind (C++ COM Attribute)" ms.date: "10/02/2018" f1_keywords: ["vc-attr.defaultbind"] helpviewer_keywords: ["defaultbind attribute"] ms.assetid: b20a8437-24e6-4b6d-a2df-09fe5e1006e0 --- # defaultbind Indicates the single, bindable property that best represents the object. ## Syntax ```cpp [defaultbind] ``` ## Remarks The **defaultbind** C++ attribute has the same functionality as the [defaultbind](/windows/win32/Midl/defaultbind) MIDL attribute. ## Example See the example for [bindable](bindable.md) for an example of how to use **defaultbind**. ## Requirements | Attribute context | Value | |-|-| |**Applies to**|Interface method| |**Repeatable**|No| |**Required attributes**|None| |**Invalid attributes**|None| For more information, see [Attribute Contexts](cpp-attributes-com-net.md#contexts). ## See also [IDL Attributes](idl-attributes.md)
[Method Attributes](method-attributes.md)
[Data Member Attributes](data-member-attributes.md)
[displaybind](displaybind.md)
[immediatebind](immediatebind.md)
[requestedit](requestedit.md)