Spinach.SwarmMemory.getPermissions C# (CSharp) Method

getPermissions() public method

public getPermissions ( ) : Hashtable
return System.Collections.Hashtable
        public Hashtable getPermissions()
        {
            return permissions;
        }
       

Usage Example

Example #1
0
 public Hashtable GetPermission(String pid)
 {
     SwarmMemory temp=new SwarmMemory("-1","");
     Hashtable result = new Hashtable();
     if (Program.Contains(pid))
         temp = (SwarmMemory)Program[pid];
     result = temp.getPermissions();
     foreach (DictionaryEntry item in result)
     {
         string[] temp1 = (string[])item.Value;
         Console.WriteLine("IPPrt={0} read={1} write={2}", item.Key.ToString(), temp1[0], temp1[1]);
     }
     return result;
 }