Share via


ModelBusReference.Equality Operator

Compares two ModelBusReference instances for equality.

Namespace:  Microsoft.VisualStudio.Modeling.Integration
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Integration.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Integration.10.0.dll)

Syntax

'Declaration
Public Shared Operator = ( _
    object1 As ModelBusReference, _
    object2 As ModelBusReference _
) As Boolean
public static bool operator ==(
    ModelBusReference object1,
    ModelBusReference object2
)
public:
static bool operator ==(
    ModelBusReference^ object1, 
    ModelBusReference^ object2
)
static let inline (=)
        object1:ModelBusReference * 
        object2:ModelBusReference  : bool
JScript does not support overloaded operators.

Parameters

Return Value

Type: System.Boolean
True if the two ModelBusReference instances refer to the same adapter, false otherwise.

Remarks

References are considered equal if the LogicalAdapterId and SerializedAdapterReference are the same. The modelDisplayName is not considered significant for comparison purposes.

.NET Framework Security

See Also

Reference

ModelBusReference Class

Microsoft.VisualStudio.Modeling.Integration Namespace