C# Class Smartsheet.Api.Models.Attachment.CreateAttachmentBuilder

A convenience class for quickly creating an Attachment to a URL.
Afficher le fichier Open project: smartsheet-platform/smartsheet-csharp-sdk Class Usage Examples

Méthodes publiques

Méthode Description
Build ( ) : Attachment

Returns the Attachment.

CreateAttachmentBuilder ( string url, AttachmentType attachmentType ) : System

Sets the required attributes for creating an Attachment.

SetAttachmentSubType ( AttachmentSubType attachmentSubType ) : CreateAttachmentBuilder

Attachment sub type, only for GOOGLE_DRIVE type attachments; one of (DOCUMENT, SPREADSHEET, PRESENTATION, PDF, DRAWING)

SetDescription ( string description ) : CreateAttachmentBuilder

Applicable when attaching to sheet or row only

SetName ( string name ) : CreateAttachmentBuilder

Attachment name

SetUrl ( string url ) : CreateAttachmentBuilder

Attachment temporary URL (files only)

Method Details

Build() public méthode

Returns the Attachment.
public Build ( ) : Attachment
Résultat Attachment

CreateAttachmentBuilder() public méthode

Sets the required attributes for creating an Attachment.
public CreateAttachmentBuilder ( string url, AttachmentType attachmentType ) : System
url string Attachment temporary URL (files only)
attachmentType AttachmentType Attachment type (one of FILE, GOOGLE_DRIVE, /// LINK, BOX_COM, DROPBOX, or EVERNOTE)
Résultat System

SetAttachmentSubType() public méthode

Attachment sub type, only for GOOGLE_DRIVE type attachments; one of (DOCUMENT, SPREADSHEET, PRESENTATION, PDF, DRAWING)
public SetAttachmentSubType ( AttachmentSubType attachmentSubType ) : CreateAttachmentBuilder
attachmentSubType AttachmentSubType the attachmentSubType
Résultat CreateAttachmentBuilder

SetDescription() public méthode

Applicable when attaching to sheet or row only
public SetDescription ( string description ) : CreateAttachmentBuilder
description string the description
Résultat CreateAttachmentBuilder

SetName() public méthode

Attachment name
public SetName ( string name ) : CreateAttachmentBuilder
name string Attachment name
Résultat CreateAttachmentBuilder

SetUrl() public méthode

Attachment temporary URL (files only)
public SetUrl ( string url ) : CreateAttachmentBuilder
url string the url
Résultat CreateAttachmentBuilder