ComponentExtensions.CreatePortWithRequiredInterface Method (IComponent, IInterface)
Create a new Required Interface port whose type is an existing Interface.
Namespace: Microsoft.VisualStudio.ArchitectureTools.Extensibility.Uml
Assembly: Microsoft.VisualStudio.ArchitectureTools.Extensibility (in Microsoft.VisualStudio.ArchitectureTools.Extensibility.dll)
Syntax
public static IPort CreatePortWithRequiredInterface(
this IComponent component,
IInterface portInterface
)
public:
[ExtensionAttribute]
static IPort^ CreatePortWithRequiredInterface(
IComponent^ component,
IInterface^ portInterface
)
static member CreatePortWithRequiredInterface :
component:IComponent *
portInterface:IInterface -> IPort
<ExtensionAttribute>
Public Shared Function CreatePortWithRequiredInterface (
component As IComponent,
portInterface As IInterface
) As IPort
Parameters
- component
Type: Microsoft.VisualStudio.Uml.Components.IComponent
portInterface
Type: Microsoft.VisualStudio.Uml.Classes.IInterfaceThe interface that the port should require.
Return Value
Type: Microsoft.VisualStudio.Uml.CompositeStructures.IPort
See Also
CreatePortWithRequiredInterface Overload
ComponentExtensions Class
Microsoft.VisualStudio.ArchitectureTools.Extensibility.Uml Namespace
Return to top