/// <summary> /// Initializes a new instance of the /// InformationProtectionChangeLabelDetails class. /// </summary> /// <param name="artifacts">Composite of artifact ID lists per /// type.</param> /// <param name="labelId">Label ID (must be in the user’s /// policy).</param> /// <param name="delegatedUser">Delegated user details. A delegated /// user is a user in the admin’s organization on whose behalf the /// admin sets a label. Although the admin sets the label, the /// delegated user is marked as the label issuer.</param> /// <param name="assignmentMethod">Specifies whether the assigned label /// is to be regarded as having been set manually or as the result of /// automatic labeling. (default value is Standard). Possible values /// include: 'Standard', 'Priviledged'</param> public InformationProtectionChangeLabelDetails(InformationProtectionArtifactsChangeLabel artifacts, System.Guid labelId, DelegatedUser delegatedUser = default(DelegatedUser), AssignmentMethod?assignmentMethod = default(AssignmentMethod?)) { Artifacts = artifacts; LabelId = labelId; DelegatedUser = delegatedUser; AssignmentMethod = assignmentMethod; CustomInit(); }
/// <summary> /// Validate the object. /// </summary> /// <exception cref="ValidationException"> /// Thrown if validation fails /// </exception> public virtual void Validate() { if (Artifacts == null) { throw new ValidationException(ValidationRules.CannotBeNull, "Artifacts"); } if (DelegatedUser != null) { DelegatedUser.Validate(); } }