Freigeben über


ModelBus.CreateAdapter Method (ModelBusReference)

Implements CreateAdapter() method

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 Function CreateAdapter ( _
    reference As ModelBusReference _
) As ModelBusAdapter
public ModelBusAdapter CreateAdapter(
    ModelBusReference reference
)
public:
virtual ModelBusAdapter^ CreateAdapter(
    ModelBusReference^ reference
) sealed
abstract CreateAdapter : 
        reference:ModelBusReference -> ModelBusAdapter 
override CreateAdapter : 
        reference:ModelBusReference -> ModelBusAdapter 
public final function CreateAdapter(
    reference : ModelBusReference
) : ModelBusAdapter

Parameters

Return Value

Type: Microsoft.VisualStudio.Modeling.Integration.ModelBusAdapter
The adapter that was created, or null if one could not be created

Implements

IModelBus.CreateAdapter(ModelBusReference)

Remarks

If the returned ModelBusAdapter is <c>null</c> or an exception is thrown, the LastStatusreference.LastStatus property of the </w:t></w:r><w:r><w:rPr><w:rStyle w:val="ParameterReference"/></w:rPr><w:t>reference</w:t></w:r><w:r><w:t> can provide hints about the reason of the failure

.NET Framework Security

See Also

Reference

ModelBus Class

CreateAdapter Overload

Microsoft.VisualStudio.Modeling.Integration Namespace