Set DocumentationAdd Method
Adds an element to the current set and returns a value to indicate if the element was successfully added.
Definition
Namespace: XMLCommentsExamples.DocumentationInheritance
Assembly: XMLCommentsExamples (in XMLCommentsExamples.dll) Version: 2025.4.26.0
if the element is added to the set; if the element is already in the set.
Assembly: XMLCommentsExamples (in XMLCommentsExamples.dll) Version: 2025.4.26.0
C#
public bool Add(
int item
)VB
Public Function Add (
item As Integer
) As BooleanC++
public:
virtual bool Add(
int item
) sealedF#
abstract Add :
item : int -> bool
override Add :
item : int -> bool Parameters
- item Int32
- The element to add to the set.
Return Value
Booleanif the element is added to the set; if the element is already in the set.