<tableclass="mapi-parameters"><tbody><tr><td><i>image</i><td> image where the class token will be looked up.</td></td></tr><tr><td><i>type_token</i><td> a type token from the image</td></td></tr></tbody></table><divclass="mapi-section">Description</div>
<div><p/>
Returns the MonoClass with the given <i>type_token</i> on the <i>image</i></div>
<tableclass="mapi-parameters"><tbody><tr><td><i>type</i><td> describes the type to return</td></td></tr></tbody></table><divclass="mapi-section">Description</div>
<div><p/>
This returns a MonoClass for the specified MonoType, the value is never <code>NULL</code>.</div>
<tableclass="mapi-parameters"><tbody><tr><td><i>image</i><td> The MonoImage where the type is looked up in</td></td></tr><tr><td><i>name_space</i><td> the type namespace</td></td></tr><tr><td><i>name</i><td> the type short name.</td></td></tr></tbody></table><divclass="mapi-section">Description</div>
<tableclass="mapi-parameters"><tbody><tr><td><i>image</i><td> The MonoImage where the type is looked up in</td></td></tr><tr><td><i>name_space</i><td> the type namespace</td></td></tr><tr><td><i>name</i><td> the type short name.</td></td></tr><tr><td><i>error</i><td> if </td></td></tr></tbody></table><divclass="mapi-section">Return value</div>
<div> The MonoClass if the given namespace and name were found, or <code>NULL</code> if it
was not found. The <i>error</i> object will contain information about the problem
in that case.</div>
<divclass="mapi-section">Description</div>
<div><p/>
Obtains a MonoClass with a given namespace and a given name which
is located in the given MonoImage. The namespace and name
<tableclass="mapi-parameters"><tbody><tr><td><i>image</i><td> a MonoImage</td></td></tr><tr><td><i>type_token</i><td> a TypeRef token</td></td></tr></tbody></table><divclass="mapi-section">Return value</div>
<div> The MonoClass* representing the typeref token, <code>NULL</code> ifcould
not be loaded.</div>
<divclass="mapi-section">Description</div>
<div><p/>
Creates the MonoClass* structure representing the type defined by
the typeref token valid inside <i>image</i>.</div>
<tableclass="mapi-parameters"><tbody><tr><td><i>image</i><td> a MonoImage</td></td></tr><tr><td><i>type_token</i><td> a TypeRef token</td></td></tr><tr><td><i>error</i><td> error return code, if any.</td></td></tr></tbody></table><divclass="mapi-section">Return value</div>
<div> The MonoClass* representing the typeref token, <code>NULL</code> if it could
not be loaded with the <i>error</i> value filled with the information about the
error.</div>
<divclass="mapi-section">Description</div>
<div><p/>
Creates the MonoClass* structure representing the type defined by
<tableclass="mapi-parameters"><tbody><tr><td><i>param</i><td> Parameter to find/construct a class for.</td></td></tr><tr><td><i>arg2</i><td> Is ignored.</td></td></tr><tr><td><i>arg3</i><td> Is ignored.</td></td></tr></tbody></table></div><!--mapi-description -->
<tableclass="mapi-parameters"><tbody><tr><td><i>klass</i><td> the MonoClass to act on</td></td></tr></tbody></table><divclass="mapi-section">Return value</div>
<div> The underlying type representation for an enumeration.
</div>
<divclass="mapi-section">Description</div>
<div><p/>
Use this function to get the underlying type for an enumeration value.
<tableclass="mapi-parameters"><tbody><tr><td><i>klass</i><td> the MonoClass to act on</td></td></tr></tbody></table><divclass="mapi-section">Description</div>
<tableclass="mapi-parameters"><tbody><tr><td><i>klass</i><td> the MonoClass to act on</td></td></tr></tbody></table><divclass="mapi-section">Return value</div>
<div> The element class of an array.
</div>
<divclass="mapi-section">Description</div>
<div><p/>
Use this function to get the element class of an array.
<tableclass="mapi-parameters"><tbody><tr><td><i>class</i><td> the class to lookup the field.</td></td></tr><tr><td><i>field_token</i><td> the field token</td></td></tr></tbody></table><divclass="mapi-section">Return value</div>
<div> A MonoClassField representing the type and offset of
the field, or a <code>NULL</code> value if the field does not belong to this
<tableclass="mapi-parameters"><tbody><tr><td><i>field</i><td> the field we need the token of</td></td></tr></tbody></table><divclass="mapi-section">Return value</div>
<div> The token representing the field in the image it was loaded from.
<tableclass="mapi-parameters"><tbody><tr><td><i>klass</i><td> the MonoClass to act on</td></td></tr></tbody></table><divclass="mapi-section">Return value</div>
<divclass="mapi-entry mapi-strike"><code>mono_class_get_full</code></div><br/><divclass='mapi-deprecated'><b>Deprecated:</b> Functions that expose MonoGenericContext are going away in mono 4.0</div>
<tableclass="mapi-parameters"><tbody><tr><td><i>image</i><td> the image where the class resides</td></td></tr><tr><td><i>type_token</i><td> the token for the class</td></td></tr><tr><td><i>context</i><td> the generic context used to evaluate generic instantiations in</td></td></tr></tbody></table><divclass="mapi-section">Return value</div>
<div> The MonoClass that represents <i>type_token</i> in <i>image</i>
<tableclass="mapi-parameters"><tbody><tr><td><i>klass</i><td> the MonoClass to act on</td></td></tr></tbody></table><divclass="mapi-section">Return value</div>
<div> a <i>Monoclass</i>* on each invocation, or <code>NULL</code> when no more are available.
</div>
<divclass="mapi-section">Description</div>
<div><p/>
This routine is an iterator routine for retrieving the interfaces implemented by this class.
<tableclass="mapi-parameters"><tbody><tr><td><i>klass</i><td> the MonoClass to act on</td></td></tr></tbody></table><divclass="mapi-section">Return value</div>
<tableclass="mapi-parameters"><tbody><tr><td><i>klass</i><td> the MonoClass to act on</td></td></tr></tbody></table><divclass="mapi-section">Return value</div>
<tableclass="mapi-parameters"><tbody><tr><td><i>klass</i><td> the MonoClass to act on</td></td></tr></tbody></table><divclass="mapi-section">Return value</div>
<div> The container type where this type is nested or <code>NULL</code> if this type is not a nested type.
</div>
<divclass="mapi-section">Description</div>
<div><p/>
Use this function to obtain the class that the provided <code>MonoClass*</code> is nested on.
<p/>
If the return is <code>NULL</code>, this indicates that this class is not nested.
<tableclass="mapi-parameters"><tbody><tr><td><i>klass</i><td> the MonoClass to act on</td></td></tr></tbody></table><divclass="mapi-section">Return value</div>
<tableclass="mapi-parameters"><tbody><tr><td><i>prop</i><td> MonoProperty to query</td></td></tr></tbody></table><divclass="mapi-section">Return value</div>
<tableclass="mapi-parameters"><tbody><tr><td><i>klass</i><td> the MonoClass to act on</td></td></tr></tbody></table><divclass="mapi-section">Return value</div>
<div> The rank for the array (the number of dimensions).
<tableclass="mapi-parameters"><tbody><tr><td><i>klass</i><td> the MonoClass to act on</td></td></tr></tbody></table><divclass="mapi-section">Return value</div>
<tableclass="mapi-parameters"><tbody><tr><td><i>klass</i><td> the MonoClass to act on</td></td></tr></tbody></table><divclass="mapi-section">Return value</div>
<tableclass="mapi-parameters"><tbody><tr><td><i>klass</i><td> The MonoClass to act on</td></td></tr><tr><td><i>interface</i><td> The interface to check if <i>klass</i> implements.</td></td></tr></tbody></table><divclass="mapi-section">Return value</div>
<div><code>TRUE</code> if <i>klass</i> implements <i>interface</i>.
<tableclass="mapi-parameters"><tbody><tr><td><i>class</i><td> the class to initialize</td></td></tr></tbody></table><divclass="mapi-section">Description</div>
<tableclass="mapi-parameters"><tbody><tr><td><i>klass</i><td> the class to be assigned to</td></td></tr><tr><td><i>oklass</i><td> the source class</td></td></tr></tbody></table><divclass="mapi-section">Return value</div>
<div><code>TRUE</code> if an instance of object oklass can be assigned to an
<tableclass="mapi-parameters"><tbody><tr><td><i>klass</i><td> the MonoClass to act on</td></td></tr></tbody></table><divclass="mapi-section">Return value</div>
<div><code>TRUE</code> if the MonoClass represents a System.Delegate.
<tableclass="mapi-parameters"><tbody><tr><td><i>klass</i><td> the MonoClass to act on</td></td></tr></tbody></table><divclass="mapi-section">Return value</div>
<div><code>TRUE</code> if the MonoClass represents an enumeration.
</div>
<divclass="mapi-section">Description</div>
<div><p/>
Use this function to determine if the provided <code>MonoClass*</code> represents an enumeration.
<tableclass="mapi-parameters"><tbody><tr><td><i>klass</i><td> class to probe if it is a subclass of another one</td></td></tr><tr><td><i>klassc</i><td> the class we suspect is the base class</td></td></tr><tr><td><i>check_interfaces</i><td> whether we should perform interface checks</td></td></tr></tbody></table><divclass="mapi-section">Description</div>
<tableclass="mapi-parameters"><tbody><tr><td><i>klass</i><td> the MonoClass to act on</td></td></tr></tbody></table><divclass="mapi-section">Return value</div>
<div><code>TRUE</code> if the MonoClass represents a ValueType, <code>FALSE</code> if it represents a reference type.
</div>
<divclass="mapi-section">Description</div>
<div><p/>
Use this method to determine if the provided <code>MonoClass*</code> represents a value type,
<tableclass="mapi-parameters"><tbody><tr><td><i>klass</i><td> the MonoClass to act on</td></td></tr></tbody></table><divclass="mapi-section">Return value</div>
<tableclass="mapi-parameters"><tbody><tr><td><i>klass</i><td> the MonoClass to act on</td></td></tr></tbody></table><divclass="mapi-section">Return value</div>
<div> The number of static and instance fields in the class.
<tableclass="mapi-parameters"><tbody><tr><td><i>klass</i><td> the MonoClass to act on</td></td></tr></tbody></table><divclass="mapi-section">Return value</div>
<tableclass="mapi-parameters"><tbody><tr><td><i>klass</i><td> the MonoClass to act on</td></td></tr></tbody></table><divclass="mapi-section">Return value</div>
<tableclass="mapi-parameters"><tbody><tr><td><i>domain</i><td> the application domain</td></td></tr><tr><td><i>class</i><td> the class to initialize</td></td></tr></tbody></table><divclass="mapi-section">Description</div>
<div><p/>
VTables are domain specific because we create domain specific code, and
they contain the domain specific static class data.
On failure, <code>NULL</code> is returned, and class->exception_type is set.</div>
<tableclass="mapi-parameters"><tbody><tr><td><i>klass</i><td> the MonoClass to act on</td></td></tr></tbody></table><divclass="mapi-section">Return value</div>
<div> a <i>MonoClassField</i>* on each iteration, or <code>NULL</code> when no more fields are available.
</div>
<divclass="mapi-section">Description</div>
<div><p/>
This routine is an iterator routine for retrieving the fields in a class.
<p/>
You must pass a gpointer that points to zero and is treated as an opaque handle to
iterate over all of the elements. When no more values are
<tableclass="mapi-parameters"><tbody><tr><td><i>klass</i><td> the class to lookup the field.</td></td></tr><tr><td><i>name</i><td> the field name</td></td></tr></tbody></table><divclass="mapi-section">Return value</div>
<div> The MonoClassField pointer of the named field or <code>NULL</code>
</div>
<divclass="mapi-section">Description</div>
<div><p/>
Search the class <i>klass</i> and it's parents for a field with the name <i>name</i>.
<tableclass="mapi-parameters"><tbody><tr><td><i>klass</i><td> the MonoClass to act on</td></td></tr></tbody></table><divclass="mapi-section">Return value</div>
<div> a MonoMethod on each iteration or <code>NULL</code> when no more methods are available.
</div>
<divclass="mapi-section">Description</div>
<div><p/>
This routine is an iterator routine for retrieving the fields in a class.
<p/>
You must pass a gpointer that points to zero and is treated as an opaque handle to
iterate over all of the elements. When no more values are
<tableclass="mapi-parameters"><tbody><tr><td><i>klass</i><td> where to look for the method</td></td></tr><tr><td><i>name</i><td> name of the method</td></td></tr><tr><td><i>param_count</i><td> number of parameters. -1 for any number.</td></td></tr></tbody></table><divclass="mapi-section">Description</div>
<div><p/>
Obtains a MonoMethod with a given name and number of parameters.
It only works if there are no multiple signatures for any given method name.</div>
<tableclass="mapi-parameters"><tbody><tr><td><i>klass</i><td> where to look for the method</td></td></tr><tr><td><i>name_space</i><td> name of the method</td></td></tr><tr><td><i>param_count</i><td> number of parameters. -1 for any number.</td></td></tr><tr><td><i>flags</i><td> flags which must be set in the method</td></td></tr></tbody></table><divclass="mapi-section">Description</div>
<div><p/>
Obtains a MonoMethod with a given name and number of parameters.
It only works if there are no multiple signatures for any given method name.</div>
<tableclass="mapi-parameters"><tbody><tr><td><i>klass</i><td> the MonoClass to act on</td></td></tr></tbody></table><divclass="mapi-section">Return value</div>
<div> a <i>Monoclass</i>* on each invocation, or <code>NULL</code> when no more are available.
</div>
<divclass="mapi-section">Description</div>
<div><p/>
This routine is an iterator routine for retrieving the nested types of a class.
This works only if <i>klass</i> is non-generic, or a generic type definition.
<p/>
You must pass a gpointer that points to zero and is treated as an opaque handle to
iterate over all of the elements. When no more values are
<tableclass="mapi-parameters"><tbody><tr><td><i>klass</i><td> the MonoClass to act on</td></td></tr></tbody></table><divclass="mapi-section">Return value</div>
<div> a <i>MonoProperty</i>* on each invocation, or <code>NULL</code> when no more are available.
</div>
<divclass="mapi-section">Description</div>
<div><p/>
This routine is an iterator routine for retrieving the properties in a class.
<p/>
You must pass a gpointer that points to zero and is treated as an opaque handle to
iterate over all of the elements. When no more values are
<tableclass="mapi-parameters"><tbody><tr><td><i>klass</i><td> a class</td></td></tr><tr><td><i>name</i><td> name of the property to lookup in the specified class</td></td></tr></tbody></table><divclass="mapi-section">Return value</div>
<div> the MonoProperty with the given name, or <code>NULL</code> if the property
does not exist on the <i>klass</i>.</div>
<divclass="mapi-section">Description</div>
<div><p/>
Use this method to lookup a property in a class</div>
<tableclass="mapi-parameters"><tbody><tr><td><i>klass</i><td> the MonoClass to act on</td></td></tr></tbody></table><divclass="mapi-section">Return value</div>
<div> a <i>MonoEvent</i>* on each invocation, or <code>NULL</code> when no more are available.
</div>
<divclass="mapi-section">Description</div>
<div><p/>
This routine is an iterator routine for retrieving the properties in a class.
<p/>
You must pass a gpointer that points to zero and is treated as an opaque handle to
iterate over all of the elements. When no more values are
<tableclass="mapi-parameters"><tbody><tr><td><i>field</i><td> the MonoClassField to act on</td></td></tr></tbody></table><divclass="mapi-section">Return value</div>
<div> A pointer to the metadata constant value or to the field
<tableclass="mapi-parameters"><tbody><tr><td><i>field</i><td> the MonoClassField to act on</td></td></tr></tbody></table><divclass="mapi-section">Return value</div>
<tableclass="mapi-parameters"><tbody><tr><td><i>field</i><td> field to retrieve information for</td></td></tr></tbody></table><divclass="mapi-section">Return value</div>
<div> the full name for the field, made up of the namespace, type name and the field name.
<tableclass="mapi-parameters"><tbody><tr><td><i>method</i><td> Method that will attempt to access the field</td></td></tr><tr><td><i>field</i><td> the field to access</td></td></tr></tbody></table><divclass="mapi-section">Return value</div>
<div><code>TRUE</code> if the given <i>method</i> is allowed to access the <i>field</i> while following
the accessibility rules of the CLI.</div>
<divclass="mapi-section">Description</div>
<div><p/>
Used to determine if a method is allowed to access the specified field.
<tableclass="mapi-parameters"><tbody><tr><td><i>method</i><td> Method that will attempt to access the other method</td></td></tr><tr><td><i>called</i><td> the method that we want to probe for accessibility.</td></td></tr></tbody></table><divclass="mapi-section">Return value</div>
<div><code>TRUE</code> if the given <i>method</i> is allowed to invoke the <i>called</i> while following
the accessibility rules of the CLI.</div>
<divclass="mapi-section">Description</div>
<div><p/>
Used to determine if the <i>method</i> is allowed to access the specified <i>called</i> method.