Skip to content

Latest commit

 

History

History
42 lines (30 loc) · 1.05 KB

switch-is.md

File metadata and controls

42 lines (30 loc) · 1.05 KB
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: switch_is
switch_is (C++ COM Attribute)
10/02/2018
vc-attr.switch_is
switch_is attribute
f1fffe5d-12d2-4e0f-8803-ccb715177d2d

switch_is

Specifies the expression or identifier acting as the union discriminant that selects the union member.

Syntax

[switch_is]

Remarks

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

Example

See the case example for a sample use of switch_is.

Requirements

Attribute context Value
Applies to typedef
Repeatable No
Required attributes None
Invalid attributes None

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

See also

IDL Attributes
Typedef, Enum, Union, and Struct Attributes
switch_type