CreateNewADContainer() public method

public CreateNewADContainer ( Node node, string newPath ) : void
node Node
newPath string
return void
Example #1
0
        public void Execute()
        {
            var syncPortal2AD = new SyncPortal2AD();

            switch (_actionType)
            {
            case ActionType.CreateNewADUser:
                syncPortal2AD.CreateNewADUser((User)Node, NewPath, PassWd);
                break;

            case ActionType.UpdateADUser:
                syncPortal2AD.UpdateADUser((User)Node, NewPath, PassWd);
                break;

            case ActionType.CreateNewADContainer:
                syncPortal2AD.CreateNewADContainer(Node, NewPath);
                break;

            case ActionType.UpdateADContainer:
                syncPortal2AD.UpdateADContainer(Node, NewPath);
                break;

            case ActionType.DeleteADObject:
                syncPortal2AD.DeleteADObject(NodePath, Guid);
                break;
            }
        }
Example #2
0
 public void Execute()
 {
     var syncPortal2AD = new SyncPortal2AD();
     switch (_actionType)
     {
         case ActionType.CreateNewADUser:
             syncPortal2AD.CreateNewADUser((User)Node, NewPath, PassWd);
             break;
         case ActionType.UpdateADUser:
             syncPortal2AD.UpdateADUser((User)Node, NewPath, PassWd);
             break;
         case ActionType.CreateNewADContainer:
             syncPortal2AD.CreateNewADContainer(Node, NewPath);
             break;
         case ActionType.UpdateADContainer:
             syncPortal2AD.UpdateADContainer(Node, NewPath);
             break;
         case ActionType.DeleteADObject:
             syncPortal2AD.DeleteADObject(NodePath, Guid);
             break;
     }
 }