InteractionExtensions.CreateMessage Method
Create a complete message, beginning and ending on specified lifelines.
Namespace: Microsoft.VisualStudio.ArchitectureTools.Extensibility.Uml
Assembly: Microsoft.VisualStudio.ArchitectureTools.Extensibility (in Microsoft.VisualStudio.ArchitectureTools.Extensibility.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function CreateMessage ( _
parent As IInteraction, _
sourceInsertionPoint As IInsertionPoint, _
targetInsertionPoint As IInsertionPoint, _
messageKind As MessageKind, _
messageSort As MessageSort _
) As IMessage
public static IMessage CreateMessage(
this IInteraction parent,
IInsertionPoint sourceInsertionPoint,
IInsertionPoint targetInsertionPoint,
MessageKind messageKind,
MessageSort messageSort
)
[ExtensionAttribute]
public:
static IMessage^ CreateMessage(
IInteraction^ parent,
IInsertionPoint^ sourceInsertionPoint,
IInsertionPoint^ targetInsertionPoint,
MessageKind messageKind,
MessageSort messageSort
)
static member CreateMessage :
parent:IInteraction *
sourceInsertionPoint:IInsertionPoint *
targetInsertionPoint:IInsertionPoint *
messageKind:MessageKind *
messageSort:MessageSort -> IMessage
public static function CreateMessage(
parent : IInteraction,
sourceInsertionPoint : IInsertionPoint,
targetInsertionPoint : IInsertionPoint,
messageKind : MessageKind,
messageSort : MessageSort
) : IMessage
Parameters
- parent
Type: Microsoft.VisualStudio.Uml.Interactions.IInteraction
- sourceInsertionPoint
Type: Microsoft.VisualStudio.ArchitectureTools.Extensibility.Uml.IInsertionPoint
An insertion point on the sending lifeline.
- targetInsertionPoint
Type: Microsoft.VisualStudio.ArchitectureTools.Extensibility.Uml.IInsertionPoint
An insertion point on the receiving lifeline.
- messageKind
Type: Microsoft.VisualStudio.Uml.Interactions.MessageKind
Must be MessageKind.Complete. Use CreateLostOrFoundMessage() for other MessageKinds
- messageSort
Type: Microsoft.VisualStudio.Uml.Interactions.MessageSort
Synchronous = message has a return part; Asynchronous = message has no return part.
Return Value
Type: Microsoft.VisualStudio.Uml.Interactions.IMessage
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
Microsoft.VisualStudio.ArchitectureTools.Extensibility.Uml Namespace