expando property

Sets or retrieves a value indicating whether arbitrary variables can be created within the object.

Syntax

HRESULT value = object.put_expando( v);HRESULT value = object.get_expando(* p);

Property values

Type: VARIANT_BOOL

VARIANT_TRUE (true)

Default. Creation of arbitrary variables is allowed.

VARIANT_FALSE (false)

Creation of arbitrary variables is not allowed.

Remarks

You can extend the properties on an object by creating arbitrary properties with values.

Microsoft Visual Basic Scripting Edition (VBScript) does not support IHTMLDOMAttribute2::expando properties on its native language objects, nor does it cause Windows Internet Explorer to create IHTMLDOMAttribute2::expando properties on its objects. Internet Explorer supports creation of IHTMLDOMAttribute2::expando properties on its objects, in any language, through IHTMLElement::setAttribute.

In Microsoft Internet Explorer 6, this property now applies to the attribute object.