ContentService.Insert Method

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

Overloads

Insert(T, App, IEnumerable, Boolean) Inserts a new content item in the root of the specified App.
Insert(T, Content, IEnumerable, Boolean) Inserts a new content item as child to the specified parent.

Insert(T, App, IEnumerable, Boolean)

Inserts a new content item in the root of the specified App.

public static T Insert(T content, App app, IEnumerable blobs = null, bool auth = true)
    where T : Content

Parameters

content
{T}
app
App
blobs
System.Collections.Generic.IEnumerable{System.Int32}
auth
System.Boolean

Returns

{T}

The inserted T object.

Insert(T, Content, IEnumerable, Boolean)

Inserts a new content item as child to the specified parent.

public static T Insert(T content, Content parent, IEnumerable blobs = null, bool auth = true)
    where T : Content

Parameters

content
{T}
parent
Content
blobs
System.Collections.Generic.IEnumerable{System.Int32}
auth
System.Boolean

Returns

{T}

The inserted T object.