コード例 #1
0
ファイル: RequestManager.cs プロジェクト: killbug2004/WSProf
		public ZipAllOptions GetGroupedZipOptions()
		{
			ZipAllOptions groupedZip = new ZipAllOptions();
			foreach (ContentItem ci in Response.Contents)
			{
				foreach (PolicySet set in ci.PolicySets)
				{
					foreach (PolicyContent.Policy policy in set.Policies)
					{
						if (!policy.Triggered)
							continue;

						PolicyContent.Action[] actions = policy.Actions;
						PolicyContent.Action action = null;
						foreach (PolicyContent.Action temp in actions)
						{
							if (temp.ClassName == "Workshare.Policy.Actions.ZipUserAction")
							{
								action = temp;
								break;
							}
						}

						if (null == action)
							continue;

						foreach (PolicyContent.ActionProperty ap in action.ActionProperties)
						{
							if (ap.Name == "ZIPAttachedFiles")
								groupedZip.ZipAll = Convert.ToBoolean(ap.Value);
							else if (ap.Name == "AES128")
								groupedZip.AES = Convert.ToBoolean(ap.Value);
							else if (ap.Name == "Password")
								groupedZip.PassWord = ap.Value;
						}

						return groupedZip;
					}
				}
			}

			return groupedZip;
		}
コード例 #2
0
		public void ReplaceProcessedAttachments(MsOutlook.MailItem mailItem, Attachment[] processedAttachments, ZipAllOptions zipAll)
		{
			m_mat.ReplaceProcessedAttachments(mailItem, processedAttachments, zipAll);
		}