Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IRoSimpleMetaDataBuilder::SetEnum method

Assigns an enumeration to the metadata builder.

Syntax


HRESULT SetEnum(
   PCWSTR name,
   PCWSTR baseType
);

Parameters

name

Type: PCWSTR

The fully qualified name of the specified enumeration type.

baseType

Type: PCWSTR

The base type of the enumeration, as specified by the metadata.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

The baseType of plain enumerations defaults to Int32. The baseType of flags enumerations defaults to UInt32.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Header

Roparameterizediid.h

See also

IRoSimpleMetaDataBuilder

 

 

Show:
© 2017 Microsoft