< Back

New-AttachmentObject

Sat Jan 18, 2020 12:09 pm

NAME New-AttachmentObject



SYNOPSIS

Creates a new object which represents a "microsoft.graph.attachment" (or one of its derived types).





SYNTAX

New-AttachmentObject [-contentType <string>] [-isInline <bool>] [-lastModifiedDateTime <DateTimeOffset>] [-name

<string>] [-size <int>] [<CommonParameters>]



New-AttachmentObject -referenceAttachment <SwitchParameter> [-contentType <string>] [-isInline <bool>]

[-lastModifiedDateTime <DateTimeOffset>] [-name <string>] [-size <int>] [<CommonParameters>]



New-AttachmentObject -itemAttachment <SwitchParameter> [-contentType <string>] [-isInline <bool>] [-item <object>]

[-lastModifiedDateTime <DateTimeOffset>] [-name <string>] [-size <int>] [<CommonParameters>]



New-AttachmentObject -fileAttachment <SwitchParameter> [-contentBytes <byte[]>] [-contentId <string>]

[-contentLocation <string>] [-contentType <string>] [-isInline <bool>] [-lastModifiedDateTime <DateTimeOffset>]

[-name <string>] [-size <int>] [<CommonParameters>]





DESCRIPTION

Creates a new object which represents a "microsoft.graph.attachment" (or one of its derived types).





PARAMETERS

-lastModifiedDateTime <DateTimeOffset>

The "lastModifiedDateTime" property, of type "Edm.DateTimeOffset".



This property is on the "microsoft.graph.attachment" type.



Required? false

Position? named

Default value 1/1/0001 12:00:00 AM +00:00

Accept pipeline input? false

Accept wildcard characters? false



-name <string>

The "name" property, of type "Edm.String".



This property is on the "microsoft.graph.attachment" type.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-contentType <string>

The "contentType" property, of type "Edm.String".



This property is on the "microsoft.graph.attachment" type.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-size <int>

The "size" property, of type "Edm.Int32".



This property is on the "microsoft.graph.attachment" type.



Required? false

Position? named

Default value 0

Accept pipeline input? false

Accept wildcard characters? false



-isInline <bool>

The "isInline" property, of type "Edm.Boolean".



This property is on the "microsoft.graph.attachment" type.



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-referenceAttachment <SwitchParameter>

A switch parameter for selecting the parameter set which corresponds to the

"microsoft.graph.referenceAttachment" type.



Required? true

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-itemAttachment <SwitchParameter>

A switch parameter for selecting the parameter set which corresponds to the "microsoft.graph.itemAttachment"

type.



Required? true

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-item <object>

The "item" property, of type "microsoft.graph.outlookItem".



This property is on the "microsoft.graph.itemAttachment" type.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-fileAttachment <SwitchParameter>

A switch parameter for selecting the parameter set which corresponds to the "microsoft.graph.fileAttachment"

type.



Required? true

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-contentId <string>

The "contentId" property, of type "Edm.String".



This property is on the "microsoft.graph.fileAttachment" type.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-contentLocation <string>

The "contentLocation" property, of type "Edm.String".



This property is on the "microsoft.graph.fileAttachment" type.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-contentBytes <byte[]>

The "contentBytes" property, of type "Edm.Binary".



This property is on the "microsoft.graph.fileAttachment" type.



Required? false

Position? named

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





RELATED LINKS