ModelBusReference.Equality Operator
Compares two ModelBusReference instances for equality.
Namespace: Microsoft.VisualStudio.Modeling.Integration
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Integration.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Integration.12.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
object1
Type: Microsoft.VisualStudio.Modeling.Integration.ModelBusReferenceFirst object in comparison.
object2
Type: Microsoft.VisualStudio.Modeling.Integration.ModelBusReferenceSecond object in comparison.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.