다음을 통해 공유


ComponentExtensions.CreatePortWithProvidedInterface 메서드 (IComponent, IInterface)

기존 인터페이스 형식의 제공된 새 인터페이스 포트를 만듭니다.

네임스페이스:  Microsoft.VisualStudio.ArchitectureTools.Extensibility.Uml
어셈블리:  Microsoft.VisualStudio.ArchitectureTools.Extensibility(Microsoft.VisualStudio.ArchitectureTools.Extensibility.dll)

구문

‘선언
<ExtensionAttribute> _
Public Shared Function CreatePortWithProvidedInterface ( _
    component As IComponent, _
    portInterface As IInterface _
) As IPort
public static IPort CreatePortWithProvidedInterface(
    this IComponent component,
    IInterface portInterface
)
[ExtensionAttribute]
public:
static IPort^ CreatePortWithProvidedInterface(
    IComponent^ component, 
    IInterface^ portInterface
)
static member CreatePortWithProvidedInterface : 
        component:IComponent * 
        portInterface:IInterface -> IPort
public static function CreatePortWithProvidedInterface(
    component : IComponent, 
    portInterface : IInterface
) : IPort

매개 변수

반환 값

형식: Microsoft.VisualStudio.Uml.CompositeStructures.IPort

사용 정보

Visual Basic 및 C#에서는 이 메서드를 IComponent 형식의 모든 개체에서 인스턴스 메서드로 호출할 수 있습니다. 인스턴스 메서드 구문을 사용하여 이 메서드를 호출할 경우에는 첫 번째 매개 변수를 생략합니다. 자세한 내용은 확장 메서드(Visual Basic) 또는 확장 메서드(C# 프로그래밍 가이드)를 참조하십시오.

.NET Framework 보안

참고 항목

참조

ComponentExtensions 클래스

CreatePortWithProvidedInterface 오버로드

Microsoft.VisualStudio.ArchitectureTools.Extensibility.Uml 네임스페이스