Embeds an attachment.
Namespace:
Gallio.Common.MarkupAssembly: Gallio (in Gallio.dll) Version: 3.3.0.0 (3.3.610.0)
Syntax
| C# |
|---|
public Attachment Embed( Attachment attachment ) |
| Visual Basic (Declaration) |
|---|
Public Function Embed ( _ attachment As Attachment _ ) As Attachment |
Parameters
- attachment
- Type: Gallio.Common.Markup..::.Attachment
The attachment to embed.
Return Value
The attachment.
Remarks
An attachment instance can be embedded multiple times efficiently since each embedded copy is typically represented as a link to the same common attachment instance.
Exceptions
| Exception | Condition |
|---|---|
| System..::.ArgumentNullException | Thrown if attachment is null. |
| System..::.InvalidOperationException | Thrown if there is already an attachment with the same name. |
