System.Xml.XmlBinaryWriterSession.TryAdd C# (CSharp) Méthode

TryAdd() public méthode

public TryAdd ( System value, int &key ) : bool
value System
key int
Résultat bool
        public virtual bool TryAdd(System.Xml.XmlDictionaryString value, out int key) { throw null; }
    }

Usage Example

		public void TryAddDuplicate ()
		{
			XmlDictionary dic = new XmlDictionary ();
			XmlDictionaryString d1 = dic.Add ("foo");
			XmlBinaryWriterSession s = new XmlBinaryWriterSession ();
			int idx;
			s.TryAdd (d1, out idx);
			s.TryAdd (d1, out idx);
		}
All Usage Examples Of System.Xml.XmlBinaryWriterSession::TryAdd