Set a file as publishable

Namespace: SynergyServerScripting.Entities
Assembly: SynergyServerScripting (in SynergyServerScripting.dll)

Public Shared Function PublishFile( _ 
ByVal display_name As String, _ 
ByVal file_id As EntityID, _ 
ByVal version As Integer, _ 
ByVal password As String, _ 
ByVal available As Date, _ 
ByVal always_show_landing_page As Boolean, _ 
ByVal created_by_id As EntityID, _ 
ByVal description As String, _ 
ByVal track_file As Boolean, _ 
ByVal page_id As Nullable(Of Long), _ 
ByVal db As IDatabase
) As Long
This language is not supported or no code example is available.
public static long PublishFile( 
string display_name
EntityID file_id
int version
string password
DateTime available
bool always_show_landing_page
EntityID created_by_id
string description
bool track_file
Nullable<long> page_id
IDatabase db 
)
This language is not supported or no code example is available.
public:  
static long PublishFile( 
String^ display_name
EntityID^ file_id
int version
String^ password
DateTime available
bool always_show_landing_page
EntityID^ created_by_id
String^ description
bool track_file
Nullable<long> page_id
IDatabase^ db 
)
This language is not supported or no code example is available.
JScript does not support generic types and methods.
This language is not supported or no code example is available.

Parameters

display_name
Type: string

the display name

file_id
Type: EntityID

the file id

version
Type: int

the version - null if always latest version

password
Type: string

an optional password - null if no password. if it is provided, it will be hashed automatically

available
Type: DateTime

date this file is available till - can be mindate if not required

always_show_landing_page
Type: bool

whether or not we should landing page

created_by_id
Type: EntityID

id of the user who created this

description
Type: string

a description

track_file
Type: bool

whether or not we should track the file

page_id
Type: Nullable<long>

db
Type: IDatabase

database to use

Return Value

Type: long

.NET Framework

Supported in: 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1