Beispiel #1
0
 /// <summary>
 /// Deletes all members of the membertype specified
 ///
 /// Used when a membertype is deleted
 ///
 /// Use with care
 /// </summary>
 /// <param Name="dt">The membertype which are being deleted</param>
 public static void DeleteFromType(MemberType dt)
 {
     foreach (Content c in getContentOfContentType(dt))
     {
         // due to recursive structure document might already been deleted..
         if (IsNode(c.UniqueId))
         {
             Member tmp = new Member(c.UniqueId);
             tmp.delete();
         }
     }
 }
Beispiel #2
0
		/// <summary>
		/// Deletes all members of the membertype specified
		/// 
		/// Used when a membertype is deleted
		/// 
		/// Use with care
		/// </summary>
		/// <param Name="dt">The membertype which are being deleted</param>
		public static void DeleteFromType(MemberType dt)
		{
			foreach (Content c in getContentOfContentType(dt))
			{
				// due to recursive structure document might already been deleted..
				if (IsNode(c.UniqueId))
				{
					Member tmp = new Member(c.UniqueId);
					tmp.delete();
				}
			}
		}