CAS.Lib.CodeProtect Namespace
CAS.Lib.CodeProtect.LicenseDsc Namespace
CAS.Lib.CodeProtect.LicenseDsc.Constraints Namespace
CAS.Lib.CodeProtect.Properties Namespace
OOI CodeProtect

TimeRangeCollection..::..IndexOf Method

Returns the index of a [TimeRange] in the [TimeRangeCollection].

Namespace:  CAS.Lib.CodeProtect.LicenseDsc.Constraints
Assembly:  CAS.CodeProtect (in CAS.CodeProtect.dll)

Syntax


public int IndexOf(
	TimeRange val
)
Public Function IndexOf ( _
	val As TimeRange _
) As Integer
public:
int^ IndexOf(
	TimeRange^ val
)

Parameters

val
Type: CAS.Lib.CodeProtect.LicenseDsc.Constraints..::..TimeRange
The [TimeRange] to locate.

Return Value

The index of the [TimeRange] of val in the [TimeRangeCollection], if found; otherwise, -1.