Click or drag to resize

PFItemAttachFile Method (String, Byte, PFFieldFileHolder)

This will create and persist a file in database and then link it into the fileHolder field value. You will need to save this item to persist the value in database. Note : this is different from .Files.Add() that will only create a non-yet-persisted instance of a file.

Namespace:  Packflow.Core
Assembly:  MicaSystems.Packflow.Core (in MicaSystems.Packflow.Core.dll) Version: 1.0.0.0 (3.2.0.306)
Syntax
C#
public PFFile AttachFile(
	string fileName,
	byte[] fileContent,
	PFFieldFileHolder field
)

Parameters

fileName
Type: SystemString
fileContent
Type: SystemByte
field
Type: Packflow.CorePFFieldFileHolder

Return Value

Type: PFFile
Persisted file
See Also