mozilla

Revision 137333 of NPN_HasMethod

  • Revision slug: NPN_HasMethod
  • Revision title: NPN_HasMethod
  • Revision id: 137333
  • Created:
  • Creator: Sheppy
  • Is current revision? No
  • Comment newly imported

Revision Content

Summary

Determines whether or not the specified NPObject has a particular method.

Syntax

#include <npruntime.h>
 
bool NPN_HasMethod(NPP npp, NPObject *npobj, NPIdentifier methodName);

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 to look for the method.
<tt>propertyName</tt>
A string identifier indicating the name of the method to look for.

Returns

true if the method exists on the specified object, otherwise false.

Revision Source

<p>
</p><p>
</p>
<h3 name="Summary">Summary</h3>
<p>Determines whether or not the specified <code><a href="en/NPObject">NPObject</a></code> has a particular method.
</p>
<h3 name="Syntax">Syntax</h3>
<pre>#include &lt;npruntime.h&gt;
 
bool NPN_HasMethod(NPP npp, NPObject *npobj, NPIdentifier methodName);
</pre>
<h3 name="Parameters">Parameters</h3>
<p>The function has the following parameters:
</p>
<dl><dt><tt>npp</tt>
</dt><dd>The <a href="en/NPP">NPP</a> indicating which plugin instance's is making the request.
</dd><dt><tt>npobj</tt>
</dt><dd>The object on which to look for the method.
</dd><dt><tt>propertyName</tt>
</dt><dd>A string identifier indicating the name of the method to look for.
</dd></dl>
<h3 name="Returns">Returns</h3>
<p><code>true</code> if the method exists on the specified object, otherwise <code>false</code>.
</p>
Revert to this revision