< Back
Add-DevOpsAttachmentContent
Post
NAME Add-DevOpsAttachmentContent
SYNOPSIS
Add an attachment to a work item
SYNTAX
Add-DevOpsAttachmentContent [-Connection] <Hashtable> -WorkItemId <Int32> [-Collection <String>] -FileName
<String> -Content <Byte[]> [-Comment <String>] [<CommonParameters>]
DESCRIPTION
PARAMETERS
-Collection <String>
Specifies the TFS collection name.
Required? false
Position? named
Default value
Accept pipeline input? False
Accept wildcard characters? false
-WorkItemId <Int32>
Specifies the ID of the Work Item to add the attachment to.
Required? true
Position? named
Default value
Accept pipeline input? True (ByPropertyName, ByValue)
Accept wildcard characters? false
-FileName <String>
Specifies the attachment's file name.
Required? true
Position? named
Default value
Accept pipeline input? False
Accept wildcard characters? false
-Content <Byte[]>
Specifies the attachment's content.
Required? true
Position? named
Default value
Accept pipeline input? False
Accept wildcard characters? false
-Comment [<String>]
Specifies the comment for attachment.
Required? false
Position? named
Default value
Accept pipeline input? False
Accept wildcard characters? false
-Connection <Hashtable>
Specifies connection information.
Required? true
Position? 0
Default value
Accept pipeline input? False
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
System.Guid
The ID of the new attachment.
RELATED LINKS
SYNOPSIS
Add an attachment to a work item
SYNTAX
Add-DevOpsAttachmentContent [-Connection] <Hashtable> -WorkItemId <Int32> [-Collection <String>] -FileName
<String> -Content <Byte[]> [-Comment <String>] [<CommonParameters>]
DESCRIPTION
PARAMETERS
-Collection <String>
Specifies the TFS collection name.
Required? false
Position? named
Default value
Accept pipeline input? False
Accept wildcard characters? false
-WorkItemId <Int32>
Specifies the ID of the Work Item to add the attachment to.
Required? true
Position? named
Default value
Accept pipeline input? True (ByPropertyName, ByValue)
Accept wildcard characters? false
-FileName <String>
Specifies the attachment's file name.
Required? true
Position? named
Default value
Accept pipeline input? False
Accept wildcard characters? false
-Content <Byte[]>
Specifies the attachment's content.
Required? true
Position? named
Default value
Accept pipeline input? False
Accept wildcard characters? false
-Comment [<String>]
Specifies the comment for attachment.
Required? false
Position? named
Default value
Accept pipeline input? False
Accept wildcard characters? false
-Connection <Hashtable>
Specifies connection information.
Required? true
Position? 0
Default value
Accept pipeline input? False
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
System.Guid
The ID of the new attachment.
RELATED LINKS