C# 클래스 Smartsheet.Api.Models.Attachment.CreateAttachmentBuilder

A convenience class for quickly creating an Attachment to a URL.
파일 보기 프로젝트 열기: smartsheet-platform/smartsheet-csharp-sdk 1 사용 예제들

공개 메소드들

메소드 설명
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