Table of Contents

Class UpdateDraftData

Namespace
CMS.Websites
Assembly
CMS.Websites.dll

Represents the data to be modified when updating a draft.

public sealed class UpdateDraftData
Inheritance
object
UpdateDraftData
Extension Methods

Constructors

UpdateDraftData(ContentItemData)

Initializes a new instance of UpdateDraftData.

public UpdateDraftData(ContentItemData contentItemData)

Parameters

contentItemData ContentItemData

Type specific content item data which will be used to update a web page.

Exceptions

ArgumentNullException

Thrown when contentItemData is null.

UpdateDraftData(ContentItemData, string)

Initializes a new instance of UpdateDraftData.

public UpdateDraftData(ContentItemData contentItemData, string urlPathSlug)

Parameters

contentItemData ContentItemData

Type specific content item data which will be used to update a web page.

urlPathSlug string

New web page URL path slug.

Exceptions

ArgumentNullException

Thrown when contentItemData is null.

ArgumentException

Thrown when urlPathSlug is null or empty.

UpdateDraftData(string)

Initializes a new instance of UpdateDraftData.

public UpdateDraftData(string urlPathSlug)

Parameters

urlPathSlug string

New web page URL path slug.

Exceptions

ArgumentException

Thrown when urlPathSlug is null or empty.

Properties

ContentItemData

Gets type specific content item data or null. See ContentItemData.

public ContentItemData ContentItemData { get; }

Property Value

ContentItemData

UrlPathSlug

Gets web page URL path slug or null.

public string UrlPathSlug { get; }

Property Value

string

See Also

TryUpdateDraft(int, string, UpdateDraftData, CancellationToken)