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
'宣言
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
- reference
Type: Microsoft.VisualStudio.Modeling.Integration.ModelBusReference
The reference to the adapter
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
- 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.