Click or drag to resize

imbPropertyCollectionExtensionsadd Method

imbSCI | imbACE | imbNLP | imbWEM | imbWBI
Safe way to add or update

Namespace:  imbSCI.Core.extensions.data
Assembly:  imbSCI.Core (in imbSCI.Core.dll) Version: 0.3.58.
Syntax
C#
public static bool add(
	this PropertyCollection existing,
	Enum key,
	Object data,
	bool skipExistingKeys = false
)
Request Example View Source

Parameters

existing
Type: System.DataPropertyCollection
The existing.
key
Type: SystemEnum
The key.
data
Type: SystemObject
The data.
skipExistingKeys (Optional)
Type: SystemBoolean
if set to true [skip existing keys].

Return Value

Type: Boolean
TRUE if it was added, and FALSE if criteria never met

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type PropertyCollection. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also