// Token: 0x060022CE RID: 8910 RVA: 0x000C7268 File Offset: 0x000C5468 public static void AddCompliance(UserContext userContext, Infobar infobar, IStorePropertyBag storePropertyBag, bool isSenderMessage) { if (infobar == null) { throw new ArgumentNullException("infobar"); } string compliance = InfobarMessageBuilderBase.GetCompliance(userContext, storePropertyBag, isSenderMessage); if (compliance != null) { infobar.AddMessage(Utilities.SanitizeHtmlEncode(compliance), InfobarMessageType.Informational, "divCmplIB"); } }
// Token: 0x06000222 RID: 546 RVA: 0x00013D44 File Offset: 0x00011F44 public static void AddCompliance(UserContext userContext, Infobar infobar, Item item, bool isSenderMessage) { if (infobar == null) { throw new ArgumentNullException("infobar"); } string compliance = InfobarMessageBuilderBase.GetCompliance(userContext, item, isSenderMessage); if (compliance != null) { infobar.AddMessageText(compliance, InfobarMessageType.Informational); } }
// Token: 0x060022CF RID: 8911 RVA: 0x000C72A4 File Offset: 0x000C54A4 public new static InfobarMessage GetCompliance(UserContext userContext, Guid complianceId) { string compliance = InfobarMessageBuilderBase.GetCompliance(userContext, complianceId); if (compliance != null) { SanitizingStringBuilder <OwaHtml> sanitizingStringBuilder = new SanitizingStringBuilder <OwaHtml>(); sanitizingStringBuilder.Append(compliance); if (userContext.ComplianceReader.GetComplianceType(complianceId, userContext.UserCulture) == ComplianceType.RmsTemplate) { string str = string.Format(LocalizedStrings.GetNonEncoded(1670455506), userContext.ExchangePrincipal.MailboxInfo.PrimarySmtpAddress.ToString()); sanitizingStringBuilder.Append("<br>"); sanitizingStringBuilder.Append(str); } return(new InfobarMessage(sanitizingStringBuilder.ToSanitizedString <SanitizedHtmlString>(), InfobarMessageType.Informational, "divCmplIB")); } return(null); }