MainSampleCodeMethod Method |
This is a sample code method.
A code method is a .Net method that can be executed by Omada Identity Manager when an event occurs.
In order for a .Net method be be a valid code method it must conform to a set of requirements:
Requirement | Description |
---|---|
Non-static | The method must not be static. |
Return bool | The method must return a boolean. |
Invoke context | The method must take a CodeMethodInvokeContext object as its first parameter. |
Simple data types | The method parameters (except the context) can only be of the following types: string, int, double or bool. |
using System; using System.Collections.Generic; using System.Data.SqlClient; using System.Text; namespace Namespace1 { public class MyCodeMethodClass { public bool AppendText(CodeMethodInvokeContext context, string input, string append, out string result) { result = input + append; return true; } } }
Namespace: Omada.OE.Solution.OIM.Assembly
public bool SampleCodeMethod( CodeMethodInvokeContext context, string inParam1, int inParam2, double inParam3, bool inParam4, out string outParam1 )