SecurityAdapter.CreateTasks Method
Initializes a new instance of a SecurityTaskCollection that will be used to provide tasks in the task pane of the Administration Console.
Namespace: Microsoft.EssentialBusinessServer.Console.ObjectModel
Assembly: Microsoft.EssentialBusinessServer.Console.ObjectModel.Security (in microsoft.essentialbusinessserver.console.objectmodel.security.dll)
Assembly: Microsoft.EssentialBusinessServer.Console.ObjectModel.Security (in microsoft.essentialbusinessserver.console.objectmodel.security.dll)
protected abstract SecurityTaskCollection CreateTasks ()
protected abstract function CreateTasks () : SecurityTaskCollection
Return Value
An instance of SecurityTaskCollection that contains the tasks, which are associated with the SecurityAdapter.The following code example shows how to use the CreateTasks method to initialize a SecurityTaskCollection:
public class NetworkSecurityAdapter : SecurityAdapter
{
public NetworkSecurityAdapter()
: base("Network Security Adapter",
"Network Adapter for the security tab",
WellknownSecurityCategory.NetworkProtection,
Resource.Network)
{
}
protected override SecurityTaskCollection CreateTasks()
{
SecurityTaskCollection taskCollection = null;
taskCollection = new SecurityTaskCollection();
SelectionTask<SecurityAdapter> task = null;
task = new ProcessTask<SecurityAdapter>(
"Editor", @"c:\windows\notepad.exe");
task.Description = "Description";
taskCollection.Add(task);
return taskCollection;
}
}
Community Additions
Show: