WebFileServer.PublishFile Method

Set a file as publishable
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
string

the display name

file_id
EntityID

the file id

version
int

the version - null if always latest version

password
string

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

available
DateTime

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

always_show_landing_page
bool

whether or not we should landing page

created_by_id
EntityID

id of the user who created this

description
string

a description

track_file
bool

whether or not we should track the file

page_id
Nullable<long>

db
IDatabase

database to use

Return Value

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

In this article

Definition