ComponentExtensions.CreatePortWithProvidedInterface Yöntem (IComponent, IInterface)
Varolan bir arabirim türü olan yeni sağlanan arabirim bağlantı noktası oluşturun.
Ad alanı: Microsoft.VisualStudio.ArchitectureTools.Extensibility.Uml
Derleme: Microsoft.VisualStudio.ArchitectureTools.Extensibility (Microsoft.VisualStudio.ArchitectureTools.Extensibility.dll içinde)
Sözdizimi
'Bildirim
<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
Parametreler
- component
Tür: Microsoft.VisualStudio.Uml.Components.IComponent
- portInterface
Tür: Microsoft.VisualStudio.Uml.Classes.IInterface
Bağlantı noktası sağlamalıdır arabirimi.
Dönüş Değeri
Tür: Microsoft.VisualStudio.Uml.CompositeStructures.IPort
Kullanım Notu
Visual Basic ve C# programlarında, bu yöntemi IComponent türündeki herhangi bir nesne üzerinde örnek yöntemi olarak çağırabilirsiniz. Bu yöntemi çağırmak için örnek yöntemi sözdizimini kullandığınızda, ilk parametreyi yok sayın. Daha fazla bilgi için bkz. Uzantı yöntemleri (Visual Basic) veya Uzantı yöntemleri (C# Programlama Kılavuzu).
.NET Framework Güvenliği
- Anında arayanlar için tam güven. Bu üye kısmen güvenilen kodla kullanılamaz. Daha fazla bilgi için bkz. Kısmen güvenilen kod kitaplıklarını kullanma.
Ayrıca bkz.
Başvuru
CreatePortWithProvidedInterface Fazla Yük
Microsoft.VisualStudio.ArchitectureTools.Extensibility.Uml Ad Alanı