Поделиться через


ComponentExtensions.CreatePortWithRequiredInterface - метод (IComponent, IInterface)

Создает новый порт требуемого интерфейса, типом которого является существующий интерфейс.

Пространство имен:  Microsoft.VisualStudio.ArchitectureTools.Extensibility.Uml
Сборка:  Microsoft.VisualStudio.ArchitectureTools.Extensibility (в Microsoft.VisualStudio.ArchitectureTools.Extensibility.dll)

Синтаксис

'Декларация
<ExtensionAttribute> _
Public Shared Function CreatePortWithRequiredInterface ( _
    component As IComponent, _
    portInterface As IInterface _
) As IPort
public static IPort CreatePortWithRequiredInterface(
    this IComponent component,
    IInterface portInterface
)
[ExtensionAttribute]
public:
static IPort^ CreatePortWithRequiredInterface(
    IComponent^ component, 
    IInterface^ portInterface
)
static member CreatePortWithRequiredInterface : 
        component:IComponent * 
        portInterface:IInterface -> IPort 
public static function CreatePortWithRequiredInterface(
    component : IComponent, 
    portInterface : IInterface
) : IPort

Параметры

Возвращаемое значение

Тип: Microsoft.VisualStudio.Uml.CompositeStructures.IPort

Примечание об использовании

В Visual Basic и C# этот метод можно вызывать как метод экземпляра для любого объекта типа IComponent. При вызове метода для экземпляра следует опускать первый параметр. Дополнительные сведения см. в разделе Методы расширения (Visual Basic) или Методы расширения (Руководство по программированию в C#).

Безопасность платформы .NET Framework

См. также

Ссылки

ComponentExtensions Класс

CreatePortWithRequiredInterface - перегрузка

Microsoft.VisualStudio.ArchitectureTools.Extensibility.Uml - пространство имен