public static Id3v2UserTextIdentificationFrame Find(Id3v2Tag tag, string description)
 {
     if (tag != null)
     {
         foreach (Id3v2UserTextIdentificationFrame frame in tag.GetFrames("TXXX"))
         {
             if (frame != null && frame.Description == description)
             {
                 return(frame);
             }
         }
         return(null);
     }
     else
     {
         throw new ArgumentNullException("tag");
     }
 }
Esempio n. 2
0
 public static Id3v2RelativeVolumeFrame Find(Id3v2Tag tag, string identification)
 {
     if (tag != null)
     {
         foreach (Id3v2RelativeVolumeFrame frame in tag.GetFrames("RVA2"))
         {
             if (frame != null && frame.Identification == identification)
             {
                 return(frame);
             }
         }
         return(null);
     }
     else
     {
         throw new ArgumentNullException("tag");
     }
 }
Esempio n. 3
0
 public static Id3v2PrivateFrame Find(Id3v2Tag tag, string owner)
 {
     if (tag != null)
     {
         foreach (Id3v2PrivateFrame frame in tag.GetFrames("PRIV"))
         {
             if (frame != null && frame.Owner == owner)
             {
                 return(frame);
             }
         }
         return(null);
     }
     else
     {
         throw new ArgumentNullException("tag");
     }
 }
 public static Id3v2AttachedPictureFrame Find(Id3v2Tag tag, string description, PictureType type)
 {
     if (tag != null)
     {
         foreach (Id3v2AttachedPictureFrame frame in tag.GetFrames("APIC"))
         {
             if (frame != null && frame.Description == description && frame.Type == type)
             {
                 return(frame);
             }
         }
         return(null);
     }
     else
     {
         throw new ArgumentNullException("tag");
     }
 }
		public static Id3v2AttachedPictureFrame Find(Id3v2Tag tag, string description, PictureType type)
		{
			if (tag != null)
			{
				foreach (Id3v2AttachedPictureFrame frame in tag.GetFrames("APIC"))
					if (frame != null && frame.Description == description && frame.Type == type)
						return frame;
				return null;
			}
			else throw new ArgumentNullException("tag");
		}
		public static Id3v2CommentsFrame Find(Id3v2Tag tag, string description)
		{
			if (tag != null)
			{
				foreach (Id3v2CommentsFrame frame in tag.GetFrames("COMM"))
					if (frame != null && frame.Description == description)
						return frame;
				return null;
			}
			else throw new ArgumentNullException("tag");
		}
		public static Id3v2RelativeVolumeFrame Find(Id3v2Tag tag, string identification)
		{
			if (tag != null)
			{
				foreach (Id3v2RelativeVolumeFrame frame in tag.GetFrames("RVA2"))
				{
					if (frame != null && frame.Identification == identification)
						return frame;
				}
				return null;
			}
			else throw new ArgumentNullException("tag");
		}
		public static Id3v2PrivateFrame Find(Id3v2Tag tag, string owner)
		{
			if (tag != null)
			{
				foreach (Id3v2PrivateFrame frame in tag.GetFrames("PRIV"))
					if (frame != null && frame.Owner == owner)
						return frame;
				return null;
			}
			else throw new ArgumentNullException("tag");
		}