Gets a value indicating whether the collection contains the specified
ModuleAction.
Namespace: DotNetNuke.Entities.Modules.ActionsAssembly: DotNetNuke (in DotNetNuke.dll)
Syntax
C# |
---|
public bool Contains(
ModuleAction value
) |
Visual Basic |
---|
Public Function Contains (
value As ModuleAction
) As Boolean |
Return Value
true if the collection contains the specified object; otherwise,
false.
Examples
| Copy 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