InteractionExtensions.CreateCombinedFragment Method (IInteraction, InteractionOperatorKind, IEnumerable<IMessage>)
Create a Combined Fragment containing one operand. You can add more operands later.
Namespace: Microsoft.VisualStudio.ArchitectureTools.Extensibility.Uml
Assembly: Microsoft.VisualStudio.ArchitectureTools.Extensibility (in Microsoft.VisualStudio.ArchitectureTools.Extensibility.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function CreateCombinedFragment ( _
parent As IInteraction, _
operatorKind As InteractionOperatorKind, _
messages As IEnumerable(Of IMessage) _
) As ICombinedFragment
public static ICombinedFragment CreateCombinedFragment(
this IInteraction parent,
InteractionOperatorKind operatorKind,
IEnumerable<IMessage> messages
)
[ExtensionAttribute]
public:
static ICombinedFragment^ CreateCombinedFragment(
IInteraction^ parent,
InteractionOperatorKind operatorKind,
IEnumerable<IMessage^>^ messages
)
static member CreateCombinedFragment :
parent:IInteraction *
operatorKind:InteractionOperatorKind *
messages:IEnumerable<IMessage> -> ICombinedFragment
public static function CreateCombinedFragment(
parent : IInteraction,
operatorKind : InteractionOperatorKind,
messages : IEnumerable<IMessage>
) : ICombinedFragment
Parameters
- parent
Type: Microsoft.VisualStudio.Uml.Interactions.IInteraction
- operatorKind
Type: Microsoft.VisualStudio.Uml.Interactions.InteractionOperatorKind
The operator defines how the combination of fragments is interpreted - alternatives, parallel, and so on.
- messages
Type: System.Collections.Generic.IEnumerable<IMessage>
The existing messages that should be covered by the initial operand of the combined fragment. They must originate on the same lifeline or execution block, and must be in consecutive order.
Return Value
Type: Microsoft.VisualStudio.Uml.Interactions.ICombinedFragment
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type IInteraction. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
.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.
See Also
Reference
CreateCombinedFragment Overload
Microsoft.VisualStudio.ArchitectureTools.Extensibility.Uml Namespace