/// <summary> /// Sets the project trust level for a project. /// </summary> /// <param name="projectInstance">the project instance guid associated with project where project trus level is set</param> /// <param name="projectTrustLevel">the trust level to be assigned to the project</param> /// <exception cref="ArgumentException">project instance guid empty</exception> public void SetProjectTrustLevel(Guid projectInstance, ProjectTrustLevel projectTrustLevel) { if (Guid.Empty == projectInstance) { throw new ArgumentException(SR.GetString(SR.ParameterCannotBeNullOrEmpty, CultureInfo.CurrentUICulture), "projectInstance"); } if (this.projectTrustTable.ContainsKey(projectInstance)) { this.projectTrustTable[projectInstance] = projectTrustLevel; } else { this.projectTrustTable.Add(projectInstance, projectTrustLevel); } }
/// <summary> /// Sets the project trust level for a project. /// </summary> /// <param name="projectInstance">the project instance guid associated with project where project trus level is set</param> /// <param name="projectTrustLevel">the trust level to be assigned to the project</param> /// <exception cref="ArgumentException">project instance guid empty</exception> public void SetProjectTrustLevel(Guid projectInstance, ProjectTrustLevel projectTrustLevel) { if (Guid.Empty == projectInstance) { throw new ArgumentException(SR.GetString(SR.ParameterCannotBeNullOrEmpty, CultureInfo.CurrentUICulture), "projectGuid"); } if (this.projectTrustTable.ContainsKey(projectInstance)) { this.projectTrustTable[projectInstance] = projectTrustLevel; } else { this.projectTrustTable.Add(projectInstance, projectTrustLevel); } }