文章 ForumThreadsCreateOptions 类

  • 命名空间: Limyee.Extensibility.Api.Version1
  • 程序集: Limyee.Api.dll

定义

class ForumThreadsCreateOptions
{
	string ContentType { 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? HasPoll { get; set;  }
	bool? IsAnonymous { get; set;  }
	bool? IsFeatured { get; set;  }
	bool? IsLocked { get; set;  }
	bool? IsQuestion { get; set;  }
	bool? IsSticky { get; set;  }
	string PollDescription { get; set;  }
	DateTime? PollExpirationDate { get; set;  }
	string PollTitle { get; set;  }
	DateTime? PostDate { get; set;  }
	DateTime? StickyDate { get; set;  }
	bool? SubscribeToThread { get; set;  }
	string Tags { get; set;  }
}

属性

名称

类型

描述

默认值

选项

ContentType

string

Used when adding a post attachement

ExtendedAttributes

IList<ExtendedAttribute>

ExtendedAttributes

FeaturedImage

string

URL of image to use 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.

HasPoll

bool?

Has poll

IsAnonymous

bool?

Is anonymous

IsFeatured

bool?

Is featured

IsLocked

bool?

Is locked

IsQuestion

bool?

Only used when the forum being posted to has both discussions and questions

IsSticky

bool?

Is sticky

PollDescription

string

Poll description

PollExpirationDate

DateTime?

Poll expiration date

PollTitle

string

Poll title

PostDate

DateTime?

Current Date

StickyDate

DateTime?

If a thread is sticky, used to specify how long it should be sticky. If no sticky date provided default is current date + 7 days

SubscribeToThread

bool?

Subscribe to thread

Tags

string

A comma separated list of tags