public void SetErrorResult(SetDisplayPictureResultCode resultCode, SanitizedHtmlString errorMessage) { if (resultCode != SetDisplayPictureResultCode.NoError && SanitizedStringBase <OwaHtml> .IsNullOrEmpty(errorMessage)) { throw new ArgumentException("Must specify an error message if result code is not NoError."); } this.resultCode = resultCode; this.errorMessage = errorMessage; }
private SetDisplayPictureResult(SetDisplayPictureResultCode resultCode) { this.resultCode = resultCode; this.errorMessage = new SanitizedHtmlString(); }