XppCompiler.executeEx Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public:
virtual System::Object ^ executeEx();
public virtual object executeEx ();
abstract member executeEx : unit -> obj
override this.executeEx : unit -> obj
Public Overridable Function executeEx () As Object
Returns
Remarks
XppCompiler objects can compile code at run time. This presents a security risk. Therefore, the executeEx method runs under Code Access Security. Calls to this method on the server require permission from the ExecutePermission class. Make sure that the user has development privileges by setting the security key to SysDevelopment on the control that calls this method.
The following code example demonstrates the executeEx method.
void XppCompilerExecuteExExample()
{
XppCompiler xpp;
ExecutePermission perm;
perm = new ExecutePermission();
if (perm == null)
{
return;
}
perm.assert();
xpp = new XppCompiler();
if (xpp != null)
{
xpp.executeEx();
}
CodeAccessPermission::revertAssert();
}