Class UpdateDraftData
Represents the data to be modified when updating a draft.
public sealed class UpdateDraftData
- Inheritance
-
objectUpdateDraftData
- Extension Methods
Constructors
UpdateDraftData(ContentItemData)
Initializes a new instance of UpdateDraftData.
public UpdateDraftData(ContentItemData contentItemData)
Parameters
contentItemDataContentItemDataType specific content item data which will be used to update a web page.
Exceptions
- ArgumentNullException
Thrown when
contentItemDatais null.
UpdateDraftData(ContentItemData, WebPageUrlPathData)
Initializes a new instance of UpdateDraftData.
public UpdateDraftData(ContentItemData contentItemData, WebPageUrlPathData urlPathData)
Parameters
contentItemDataContentItemDataType specific content item data which will be used to update a web page.
urlPathDataWebPageUrlPathDataUrldata for adding or updating system or vanity URL.
Exceptions
- ArgumentNullException
Thrown when
contentItemDataorurlPathDatais null.
UpdateDraftData(ContentItemData, string)
Initializes a new instance of UpdateDraftData.
public UpdateDraftData(ContentItemData contentItemData, string urlPathSlug)
Parameters
contentItemDataContentItemDataType specific content item data which will be used to update a web page.
urlPathSlugstringNew web page URL path slug.
Exceptions
- ArgumentNullException
Thrown when
contentItemDatais null.- ArgumentException
Thrown when
urlPathSlugis null or empty.
UpdateDraftData(WebPageUrlPathData)
Initializes a new instance of UpdateDraftData.
public UpdateDraftData(WebPageUrlPathData urlPathData)
Parameters
urlPathDataWebPageUrlPathDataUrldata for adding or updating system or vanity URL.
Exceptions
- ArgumentNullException
Thrown when
urlPathDatais null.
UpdateDraftData(string)
Initializes a new instance of UpdateDraftData.
public UpdateDraftData(string urlPathSlug)
Parameters
urlPathSlugstringNew web page URL path slug.
Exceptions
- ArgumentException
Thrown when
urlPathSlugis null or empty.
Properties
AiProvenance
AI provenance of the updated draft's fields, keyed by field GUID, replacing the stored provenance. An empty dictionary removes the provenance of all fields, null keeps the stored provenance unchanged.
public IReadOnlyDictionary<Guid, AiProvenance> AiProvenance { get; set; }
Property Value
- IReadOnlyDictionary<Guid, AiProvenance>
ContentItemData
Gets type specific content item data or null. See ContentItemData.
public ContentItemData ContentItemData { get; }
Property Value
UrlPathData
Gets URL data or null.
public WebPageUrlPathData UrlPathData { get; }
Property Value
UrlPathSlug
Gets web page URL path slug or null.
public string UrlPathSlug { get; }
Property Value
- string