Share via


SPServiceContext.Equality operator

Determines whether the two specified SPServiceContext objects have the same value.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Shared Operator = ( _
    serviceContextA As SPServiceContext, _
    serviceContextB As SPServiceContext _
) As Boolean
'Usage
Dim serviceContextA As SPServiceContext
Dim serviceContextB As SPServiceContext
Dim returnValue As Boolean

returnValue = (serviceContextA = serviceContextB)
public static bool operator ==(
    SPServiceContext serviceContextA,
    SPServiceContext serviceContextB
)

Parameters

Return value

Type: System.Boolean
true if the value of serviceContextA is the same as the value of serviceContextB; otherwise, false.

See also

Reference

SPServiceContext class

SPServiceContext members

Microsoft.SharePoint namespace