-
Notifications
You must be signed in to change notification settings - Fork 56
Closed
Labels
questionFurther information is requestedFurther information is requested
Description
Doesnt work without error:
var updateParameters = new PagesUpdateParameters{
Properties = new Dictionary<string, PropertyValue>
{
{ "Name", blog.Name.ToTitlePropertyValue() }
}
};
var page = await blogClient.Pages.UpdateAsync(duplicatedTemplateId, updateParameters);
Also doesnt work without error:
var updateParameters = new PagesUpdateParameters{
Properties = new Dictionary<string, PropertyValue>
{
{ "Title", blog.Name.ToTitlePropertyValue() }
}
};
var page = await blogClient.Pages.UpdateAsync(duplicatedTemplateId, updateParameters);
Static function for fixing bad readibility
public static TitlePropertyValue ToTitlePropertyValue(this string? text){
return new TitlePropertyValue(){
Title = new List<RichTextBase>(){
new RichTextText { Text = new Text { Content = text } }
}
};
}
Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested