VsModelingAdapterManager.CheckCanCreateAdapter Method
Checks if an ModelingAdapterReference can be successfully created from this ModelBusReference and also if the LogicalAdapterId is recognized by this ModelBusAdapterManager. This method should throw an appropriate exception if a ModelBusAdapter cannot potentially be created using this ModelBusReference.
Namespace: Microsoft.VisualStudio.Modeling.Integration.Shell
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Integration.Shell.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Integration.Shell.10.0.dll)
Syntax
'Declaration
Protected Overridable Sub CheckCanCreateAdapter ( _
reference As ModelBusReference _
)
protected virtual void CheckCanCreateAdapter(
ModelBusReference reference
)
protected:
virtual void CheckCanCreateAdapter(
ModelBusReference^ reference
)
abstract CheckCanCreateAdapter :
reference:ModelBusReference -> unit
override CheckCanCreateAdapter :
reference:ModelBusReference -> unit
protected function CheckCanCreateAdapter(
reference : ModelBusReference
)
Parameters
- reference
Type: Microsoft.VisualStudio.Modeling.Integration.ModelBusReference
Reference to be checked.
.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.