ContentService.Get Method

Namespace:
Weavy.Core.Services
Assembly:
Weavy.Core.dll

Overloads

Get(int, bool) Get the specified Content item.
Get(int, long, bool) Get the specified Content version.
Get(int, bool) Get the (latest version) of the specified Content item.
Get(int, long, bool) Get the specified Content version.

Get(int, bool)

Get the specified Content item.

public static Content Get(int id, bool filter = true)

Parameters

id
int
filter
bool

true to filter out item that is trashed or where the user does not have View.

Returns

Content

An Content object.

Get(int, long, bool)

Get the specified Content version.

public static Content Get(int id, long version, bool filter = true)

Parameters

id
int

Id of the content item.

version
long

Timestamp of the version to return.

filter
bool

true to filter out items that are trashed or where the user does not have View.

Returns

Content

An object implementing the Content interface.

Get(int, bool)

Get the (latest version) of the specified Content item.

public static T Get<T>(int id, bool filter = true)

    where T : Content

Parameters

id
int

Id of the content item.

filter
bool

true to filter out items that are trashed or where the user does not have View.

Returns

An object of type T.

Get(int, long, bool)

Get the specified Content version.

public static T Get<T>(int id, long version, bool filter = true)

    where T : Content, IVersionable

Parameters

id
int

Id of the content item.

version
long

Timestamp of the version to return.

filter
bool

true to filter out items that are trashed or where the user does not have View.

Returns

An object of type T.