Attaches an attachment to the execution log.
Namespace:
Gallio.FrameworkAssembly: Gallio (in Gallio.dll) Version: 3.3.0.0 (3.3.459.0)
Syntax
| C# |
|---|
public static Attachment Attach( Attachment attachment ) |
| Visual Basic (Declaration) |
|---|
Public Shared Function Attach ( _ attachment As Attachment _ ) As Attachment |
Parameters
- attachment
- Type: Gallio.Common.Markup..::.Attachment
The attachment to include.
Return Value
The attachment.
Remarks
This is a convenience method that forwards the request to the current log writer as returned by the Writer property.
Exceptions
| Exception | Condition |
|---|---|
| System..::.ArgumentNullException | Thrown if attachment is null. |
| System..::.InvalidOperationException | Thrown if there is already an attachment with the same name. |
