public bool MoveADOperationMasterRole(string Server, ActiveDirectoryOperationMasterRole OperationMasterRole, bool Seize)
        {
            MoveADOperationMasterRoleRequest moveADOperationMasterRoleRequest = new MoveADOperationMasterRoleRequest();

            moveADOperationMasterRoleRequest.Server = Server;
            moveADOperationMasterRoleRequest.OperationMasterRole = OperationMasterRole;
            moveADOperationMasterRoleRequest.Seize = Seize;
            MoveADOperationMasterRoleResponse moveADOperationMasterRoleResponse = this.Channel.MoveADOperationMasterRole(moveADOperationMasterRoleRequest);

            return(moveADOperationMasterRoleResponse.WasSeized);
        }
예제 #2
0
		internal void MoveOperationMasterRole(ADOperationMasterRole operationMasterRole, bool seize, out bool wasSeized)
		{
			this.Init();
			MoveADOperationMasterRoleRequest moveADOperationMasterRoleRequest = new MoveADOperationMasterRoleRequest();
			moveADOperationMasterRoleRequest.Seize = seize;
			ADOperationMasterRole aDOperationMasterRole = operationMasterRole;
			switch (aDOperationMasterRole)
			{
				case ADOperationMasterRole.PDCEmulator:
				{
					moveADOperationMasterRoleRequest.OperationMasterRole = ActiveDirectoryOperationMasterRole.PDCEmulator;
					break;
				}
				case ADOperationMasterRole.RIDMaster:
				{
					moveADOperationMasterRoleRequest.OperationMasterRole = ActiveDirectoryOperationMasterRole.RIDMaster;
					break;
				}
				case ADOperationMasterRole.InfrastructureMaster:
				{
					moveADOperationMasterRoleRequest.OperationMasterRole = ActiveDirectoryOperationMasterRole.InfrastructureMaster;
					break;
				}
				case ADOperationMasterRole.SchemaMaster:
				{
					moveADOperationMasterRoleRequest.OperationMasterRole = ActiveDirectoryOperationMasterRole.SchemaMaster;
					break;
				}
				case ADOperationMasterRole.DomainNamingMaster:
				{
					moveADOperationMasterRoleRequest.OperationMasterRole = ActiveDirectoryOperationMasterRole.DomainNamingMaster;
					break;
				}
			}
			MoveADOperationMasterRoleResponse moveADOperationMasterRoleResponse = this._topoMgmt.MoveADOperationMasterRole(this._sessionHandle, moveADOperationMasterRoleRequest);
			wasSeized = moveADOperationMasterRoleResponse.WasSeized;
		}
예제 #3
0
		MoveADOperationMasterRoleResponse Microsoft.ActiveDirectory.Management.IADTopologyManagement.MoveADOperationMasterRole(ADSessionHandle handle, MoveADOperationMasterRoleRequest request)
		{
			MoveADOperationMasterRoleResponse moveADOperationMasterRoleResponse = null;
			AdwsConnection internalHandle = this.GetInternalHandle(handle);
			if (internalHandle != null)
			{
				moveADOperationMasterRoleResponse = internalHandle.MoveADOperationMasterRole(request);
			}
			return moveADOperationMasterRoleResponse;
		}
 MoveADOperationMasterRoleResponse Microsoft.ActiveDirectory.CustomActions.TopologyManagement.MoveADOperationMasterRole(MoveADOperationMasterRoleRequest request)
 {
     return(base.Channel.MoveADOperationMasterRole(request));
 }
 public Microsoft.ActiveDirectory.CustomActions.MoveADOperationMasterRoleResponse MoveADOperationMasterRole(ADSessionHandle handle, Microsoft.ActiveDirectory.CustomActions.MoveADOperationMasterRoleRequest request)
 {
     throw new NotImplementedException();
 }