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)
Available in Sandboxed Solutions: No

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