Windows apps
Collapse the table of content
Expand the table of content

Attribute Descriptions [Automation]

The following sections describe the ODL attributes and the types of objects that they apply to, along with the equivalent flags set in the object's type information.

ODL Attributes

Description

appobject

Identifies the Application object.

aggregatable

Indicates that the class supports aggregation.

bindable

Indicates that the property supports data binding.

control

Indicates that the item represents a control from which a container site will derive additional type libraries or coclasses.

custom

Indicates a custom attribute (one not defined by Automation). This feature enables the independent definition and use of attributes.

default

Indicates that the interface or dispinterface represents the default programmability interface. Intended for use by macro languages.

defaultbind

Indicates the single, bindable property that best represents the object.

defaultcollelem

Allows for optimization of code.

defaultvalue

Enables specification of a default value for a typed optional parameter.

defaultvtable

Enables an object to have two different source interfaces.

displaybind

Indicates that a property should be displayed as bindable to the user.

dllname

Defines the name of the DLL that contains the entry points for a module.

dual

Identifies an interface that exposes properties and methods through IDispatch and directly through the VTBL.

entry

Identifies the entry point in the DLL.

helpcontext

Sets the context in the Help file.

helpfile

Sets the name of the Help file.

helpstring

Sets the Help string.

helpstringcontext

Sets the string context in the Help file.

helpstringdll

Sets the name of the DLL to use to perform the document string lookup (localization).

hidden

Indicates that the item exists, but should not be displayed in a user-oriented browser.

id

Identifies the DISPID of the member.

immediatebind

Allows individual bindable properties on a form to specify this behavior. When this bit is set, all changes will be notified.

in

Specifies an input parameter.

lcid

Indicates that the parameter is a locale ID (LCID).

lcid

This attribute identifies the locale for a type library.

licensed

Indicates that the class is licensed.

nonbrowsable

Indicates that the property appears in an object browser (which does not show property values), but does not appear in a properties browser (which does show property values).

noncreatable

Indicates that the class does not support creation at the top level (for example, through ITypeInfo::CreateInstance or CoCreateInstance). An object of such a class is usually obtained through a method call on another object.

nonextensible

Indicates that the IDispatch implementation includes only the properties and methods listed in the interface description.

odl

Identifies an interface as an Object Description Language (ODL) interface.

oleautomation

The oleautomation attribute indicates that an interface is compatible with Automation.

optional

Specifies an optional parameter.

out

Specifies an output parameter.

propget

Specifies a property-accessor function.

propput

Specifies a property-setting function.

propputref

Specifies a property-setting function that uses a reference instead of a value.

public

Includes an alias declared with the typedef keyword in the type library.

readonly

Prohibits assignment to a variable.

requestedit

Indicates that the property supports the OnRequestEdit notification.

restricted

Prevents the item from being used by a macro programmer.

retval

Designates the parameter that receives the return value of the member.

source

Indicates that a member is a source of events.

string

Specifies a string.

uidefault

Indicates that the type information member is the default member for display in the user interface.

usesgetlasterror

Tells the caller that, if there is an error when calling that function, the caller can then call GetLastError to retrieve the error code.

uuid

Specifies the universally unique ID (UUID) of the item.

vararg

Indicates a variable number of arguments.

version

Specifies a version number.

Show:
© 2017 Microsoft