Gets a value indicating whether the collection contains the specified ModuleAction.

Namespace: DotNetNuke.Entities.Modules.Actions
Assembly: DotNetNuke (in DotNetNuke.dll)

Syntax

C#
public bool Contains(
	ModuleAction value
)
Visual Basic
Public Function Contains ( 
	value As ModuleAction
) As Boolean

Parameters

value
Type: DotNetNuke.Entities.Modules.Actions..::..ModuleAction
The ModuleAction to search for in the collection.

Return Value

true if the collection contains the specified object; otherwise, false.

Examples

 Copy imageCopy Code
' Tests for the presence of a ModuleAction in the 
' collection, and retrieves its index if it is found.
Dim testModuleAction = New ModuleAction(5, "Edit Action", "Edit")
Dim itemIndex As Integer = -1
If collection.Contains(testModuleAction) Then
   itemIndex = collection.IndexOf(testModuleAction)
End If

See Also