/// <summary> /// Initializes a new instance of the <see cref="WorkspaceMember" /> class. /// </summary> /// <param name="Name">Name.</param> /// <param name="Workspace">Workspace.</param> /// <param name="MemberType">The workspace member type. (required).</param> /// <param name="Member">Member.</param> /// <param name="User">User.</param> /// <param name="Group">Group.</param> /// <param name="SecurityProfile">SecurityProfile.</param> public WorkspaceMember(string Name = null, DomainEntityRef Workspace = null, MemberTypeEnum?MemberType = null, DomainEntityRef Member = null, User User = null, Group Group = null, SecurityProfile SecurityProfile = null) { this.Name = Name; this.Workspace = Workspace; this.MemberType = MemberType; this.Member = Member; this.User = User; this.Group = Group; this.SecurityProfile = SecurityProfile; }
/// <summary> /// Initializes a new instance of the <see cref="WorkspaceMember" /> class. /// </summary> /// <param name="Name">Name.</param> /// <param name="Workspace">Workspace.</param> /// <param name="MemberType">The workspace member type. (required).</param> /// <param name="Member">Member.</param> /// <param name="User">User.</param> /// <param name="Group">Group.</param> /// <param name="SecurityProfile">SecurityProfile.</param> public WorkspaceMember(string Name = null, UriReference Workspace = null, MemberTypeEnum?MemberType = null, UriReference Member = null, User User = null, Group Group = null, SecurityProfile SecurityProfile = null) { // to ensure "MemberType" is required (not null) if (MemberType == null) { throw new InvalidDataException("MemberType is a required property for WorkspaceMember and cannot be null"); } else { this.MemberType = MemberType; } this.Name = Name; this.Workspace = Workspace; this.Member = Member; this.User = User; this.Group = Group; this.SecurityProfile = SecurityProfile; }