Adds val to the Set associated with key in the Map. If key is not already in the map, a new Set will first be created.

Namespace: Lucene.Net.Util
Assembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1

Syntax

C#
public virtual int Put(
	T key,
	V val
)
Visual Basic
Public Overridable Function Put ( _
	key As T, _
	val As V _
) As Integer
Visual C++
public:
virtual int Put(
	T key, 
	V val
)

Parameters

key
Type: T

[Missing <param name="key"/> documentation for "M:Lucene.Net.Util.MapOfSets`2.Put(`0,`1)"]

val
Type: V

[Missing <param name="val"/> documentation for "M:Lucene.Net.Util.MapOfSets`2.Put(`0,`1)"]

Return Value

the size of the Set associated with key once val is added to it.

See Also