Version

IsSameAs Method

Returns a boolean indicating whether the specified TimeRange instance is logically the same as this instance.
Syntax
'Declaration
 
Public Function IsSameAs( _
   ByVal value As TimeRange _
) As Boolean
public bool IsSameAs( 
   TimeRange value
)

Parameters

value
The TimeRange to test.
Remarks

Given two different TimeRange instances, one named "a" and the other named "b", each with the same values for their StartTime and EndTime properties, the expression, "a == b" will evaluate to false, i.e., the TimeRange object maintains reference identity. The IsSameAs method makes it possible to determine whether two different TimeRange instances are logically the same.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also