Partager via


ModelBusReference.AdapterReference Property

Returns the adapter reference contained in the model bus reference, or null if the adapter manager required to deserialize the adapter reference is not registered with the modelbus, or if this model bus reference does not have a ModelBus.

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 ReadOnly Property AdapterReference As ModelBusAdapterReference
public ModelBusAdapterReference AdapterReference { get; }
public:
property ModelBusAdapterReference^ AdapterReference {
    ModelBusAdapterReference^ get ();
}
member AdapterReference : ModelBusAdapterReference with get
function get AdapterReference () : ModelBusAdapterReference

Property Value

Type: Microsoft.VisualStudio.Modeling.Integration.ModelBusAdapterReference

Remarks

If the caller did not supply this value when the model bus reference was constructed, the value will be calculated by attempting to deserialize the SerializedAdapterReference value. If the adapter manager required to deserialize the reference is not registered with the modelbus, the property wil return null. An exception could be thrown during deserialization if the SerializedAdapterReference does not represent a valid serialized adapter reference. If we don't have a model bus, then we won't be able to deserialize the adapter reference, so null will be returned.

.NET Framework Security

See Also

Reference

ModelBusReference Class

Microsoft.VisualStudio.Modeling.Integration Namespace