WebFileServer.PublishPackage (String, Dictionary<EntityIDInt32>, String, DateTime, Boolean, EntityID, String, Boolean, Nullable<Int64>, IPublishingNamer, IDatabase, IClient) Method

Create a publishable package
Public Shared Function PublishPackage( _ 
ByVal display_name As String, _ 
ByVal file_ids As Dictionary(Of EntityID, 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 namer As IPublishingNamer, _ 
ByVal db As IDatabase, _ 
ByVal client As IClient
) As Long
This language is not supported or no code example is available.
public static long PublishPackage( 
string display_name
Dictionary<EntityID, int> file_ids
string password
DateTime available
bool always_show_landing_page
EntityID created_by_id
string description
bool track_file
Nullable<long> page_id
IPublishingNamer namer
IDatabase db
IClient client 
)
This language is not supported or no code example is available.
public:  
static long PublishPackage( 
String^ display_name
Dictionary<EntityID^, int>^ file_ids
String^ password
DateTime available
bool always_show_landing_page
EntityID^ created_by_id
String^ description
bool track_file
Nullable<long> page_id
IPublishingNamer^ namer
IDatabase^ db
IClient^ client 
)
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_ids
Dictionary<EntityID, int>

map of files to versions to publish - the version may be -1

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>

namer
IPublishingNamer

a method to name files

db
IDatabase

database to use

client
IClient

<default>

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