public bool ContainsValue(EventCategorySink item) { return m_Bag.ContainsValue(item); }
private void ParseEventCategorySink(XmlElement element, EventCategorySink evCatSink) { foreach (XmlNode node1 in element.ChildNodes) { if (node1.NodeType == XmlNodeType.Element) { XmlElement element1 = (XmlElement) node1; if (element1.LocalName != "eventSinkRef") { throw new InvalidOperationException(element1.LocalName + " is not allowed in this context."); } XmlAttribute attribute1 = element1.Attributes["name"]; if ((attribute1 == null) || (attribute1.Value == string.Empty)) { throw new InvalidOperationException("name is mandatory, it cannot be omitted or empty."); } string text1 = attribute1.Value; EventSink sink1 = m_EventSinks[text1]; if (sink1 == null) { throw new InvalidOperationException("The referenced '" + text1 + "' event sink does not exist."); } evCatSink.EventSinks.Add(text1, sink1); } } }
public void Add(string key, EventCategorySink item) { m_Bag.Add(key, item); }