public bool AddMetadata(GSAMetadataItem meta) { //Check if there is an existing name/value pair with the exact //match. We are not concerned with duplicate names as there could //be cause for duplicate attributes. if (this.Metadata.Contains(meta)) { //Do nothing - skip return false; } else { this.Metadata.Add(meta); return true; } }
/// <summary> /// Adds the metadata. /// </summary> /// <param name="name">The name.</param> /// <param name="metavalue">The metavalue.</param> public bool AddMetadata(string name, string metavalue) { GSAMetadataItem meta = new GSAMetadataItem(name,metavalue); return this.AddMetadata(meta); }