コード例 #1
0
 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;
 }
コード例 #2
0
 private SetDisplayPictureResult(SetDisplayPictureResultCode resultCode)
 {
     this.resultCode   = resultCode;
     this.errorMessage = new SanitizedHtmlString();
 }