0 out of 4 rated this helpful - Rate this topic

PutProperty Method

Associates a user-defined name/value pair with the object.

Syntax

        object.PutProperty( _
    sProperty As String, _
    vValue As Variant)

Parameters

sProperty
A String that specifies the exact name of the property to set.
vValue
A Variant that specifies the new value of the property.

Remarks

This method can be used to store any property value or automation-compatible object reference. There are no pre-defined property values.

The property name specified in sProperty is case-sensitive.

If the object passed in vValue implements the IObjectWithSite interface and the browser object is set as the site, SetSite( Null) is called when the property value is discarded. If the object implements the IDiscardableBrowserProperty interface, the browser automatically releases the object if it is not accessed for 10 minutes. For more information, see Discardable Properties for Your Web Pages in Internet Explorer 4.0 and 5.0.

The WebBrowser object delegates this method to the top-level frame. If no frame exists, it returns E_FAIL.

Applies To

InternetExplorer, WebBrowser

See Also

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ