displaybind attribute

The [displaybind] attribute indicates a property that should be displayed to the user as bindable.

[
  [interface-attribute-list]
]
interface | dispinterface interface-name
{
    [bindable, displaybind [ , attribute-list]] returntype function-name(params)
}

Parameters

interface-attribute-list

Specifies an optional list of interface attributes.

interface-name

The name of the interface.

attribute-list

Specifies a list of one or more attributes, separated by commas, that apply to the function-return type.

returntype

Specifies the return type of the function.

function-name

Specifies the name of the function to which the [displaybind] attribute will be applied.

params

Function parameter list.

Remarks

Properties that have the [displaybind] attribute must also have the [bindable] attribute. An object can support data binding but not have this attribute.

Flags

FUNCFLAG_FDISPLAYBIND, VARFLAG_FDISPLAYBIND

Examples

[
    uuid(1e196b20-1f3c-1069-996b-00dd010fe676)
] 
interface MyObject : IUnknown
{
    properties:
    methods:
        [id(1), propget, bindable, defaultbind, 
         displaybind] long Size(void);

        [id(1), propput, bindable, defaultbind, 
         displaybind] HRESULT Size([in]long lSize);
}

See also

bindable

TYPEFLAGS

ODL File Syntax

ODL File Example

Generating a Type Library With MIDL