NPN HasProperty
From MDC
« Gecko Plugin API Reference « Scripting plugins
Contents |
[edit] Summary
Determines whether or not the specified NPObject has a particular property.
[edit] Syntax
#include <npruntime.h> bool NPN_HasProperty(NPP npp, NPObject *npobj, NPIdentifier propertyName);
[edit] Parameters
The function has the following parameters:
- npp
- The NPP indicating which plugin instance is making the request.
- npobj
- The object on which to look for the property.
- propertyName
- A string identifier indicating the name of the property to look for.
[edit] Returns
true if the property exists on the specified object, otherwise false.