- 命名空间: Limyee.Extensibility.Api.Version1
- 程序集: Limyee.Api.dll
定义
class BlogPostsUpdateOptions { int? BlogId { get; set; } string Body { get; set; } string ContentType { get; set; } string Excerpt { get; set; } int? ExcerptSize { get; set; } IList<ExtendedAttribute> ExtendedAttributes { get; set; } string FeaturedImage { get; set; } Byte[] FileData { get; set; } string FileName { get; set; } Stream FileStream { get; set; } string FileUploadContext { get; set; } string FileUrl { get; set; } bool? GeneratePostSummary { get; set; } bool? IsApproved { get; set; } bool? IsCrossPostingEnabled { get; set; } bool? IsFeatured { get; set; } string MetaDescription { get; set; } string MetaKeywords { get; set; } string MetaTitle { get; set; } string OpenGraphDescription { get; set; } string OpenGraphImageContext { get; set; } string OpenGraphImageFileName { get; set; } string OpenGraphTitle { get; set; } string PostImageUrl { get; set; } DateTime? PublishedDate { get; set; } bool? RemoveAttachment { get; set; } bool? RemoveOpenGraphImage { get; set; } string Slug { get; set; } string Tags { get; set; } string Title { get; set; } bool? UsePostSummary { get; set; } }
属性
名称 |
类型 |
描述 |
默认值 |
选项 |
BlogId |
int? |
Id of parent blog |
||
Body |
string |
Content of blog post |
||
ContentType |
string |
Used when adding a post attachement. |
||
Excerpt |
string |
Excerpt |
||
ExcerptSize |
int? |
Excerpt size |
||
ExtendedAttributes |
IList<ExtendedAttribute> |
ExtendedAttributes |
||
FeaturedImage |
string |
Used to include a featured image when IsFeatured is true. |
||
FileData |
Byte[] |
When adding a post attachment either FileData, FileUrl or FileUploadContext is required. |
||
FileName |
string |
Used when adding a post attachement. |
||
FileStream |
Stream |
Used when adding a post attachement. |
||
FileUploadContext |
string |
When adding a post attachment either FileData, FileUrl or FileUploadContext is required. |
||
FileUrl |
string |
When adding a post attachment either FileData, FileUrl or FileUploadContext is required. |
||
GeneratePostSummary |
bool? |
Generate post summary |
||
IsApproved |
bool? |
Whether the moderation state should be approved |
||
IsCrossPostingEnabled |
bool? |
Whether cross-posting blogs is enabled |
||
IsFeatured |
bool? |
Whether the post should be featured |
||
MetaDescription |
string |
A brief description of the content used in the meta description tag. |
||
MetaKeywords |
string |
A comma-seperated list of keywords |
||
MetaTitle |
string |
Title used in page's title tag |
||
OpenGraphDescription |
string |
Description used in open graph tag. |
||
OpenGraphImageContext |
string |
Image used in open graph tag. |
||
OpenGraphImageFileName |
string |
Name for file used in open graph tag. |
||
OpenGraphTitle |
string |
Title used in open graph tag |
||
PostImageUrl |
string |
Blog Post Image Url. |
||
PublishedDate |
DateTime? |
If PublishedDate is not specified it will default to current date/time. |
||
RemoveAttachment |
bool? |
When true, removes the post's attachment |
||
RemoveOpenGraphImage |
bool? |
Remove the current open graph image. |
||
Slug |
string |
If not specified slug will be automatically created based on post title. |
||
Tags |
string |
A comma separated list of tags. |
||
Title |
string |
Title of blog post |
||
UsePostSummary |
bool? |
Use post summary |