C# Класс Smartsheet.Api.Models.Attachment.CreateAttachmentBuilder

A convenience class for quickly creating an Attachment to a URL.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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)

Описание методов

Build() публичный Метод

Returns the Attachment.
public Build ( ) : Attachment
Результат Attachment

CreateAttachmentBuilder() публичный Метод

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)
Результат System

SetAttachmentSubType() публичный Метод

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
Результат CreateAttachmentBuilder

SetDescription() публичный Метод

Applicable when attaching to sheet or row only
public SetDescription ( string description ) : CreateAttachmentBuilder
description string the description
Результат CreateAttachmentBuilder

SetName() публичный Метод

Attachment name
public SetName ( string name ) : CreateAttachmentBuilder
name string Attachment name
Результат CreateAttachmentBuilder

SetUrl() публичный Метод

Attachment temporary URL (files only)
public SetUrl ( string url ) : CreateAttachmentBuilder
url string the url
Результат CreateAttachmentBuilder