Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

NPN_SetProperty

« Gecko Plugin API Reference « Scripting plugins

Summary

Sets the value of a property on the specified NPObject.

Syntax

#include <npruntime.h>
 
bool NPN_SetProperty(NPP npp, NPObject *npobj, NPIdentifier propertyName,
                     const NPVariant *value);

Parameters

The function has the following parameters:

<tt>npp</tt>
The NPP indicating which plugin instance's is making the request.
<tt>npobj</tt>
The object on which a value is to be set.
<tt>propertyName</tt>
A string identifier indicating the name of the property whose value is to be set.
<tt>value</tt>
The value to store in the specified property.

Returns

true if the value was set successfully, otherwise false.

Document Tags and Contributors

Tags: 
 Contributors to this page: teoli, Sheppy
 Last updated by: Sheppy,