IScriptedContentFragmentController is defined in the Telligent.Evolution.Extensibility.UI.Version1 namespace of Telligent.Evolution.Platform.dll
Definition
interface IScriptedContentFragmentController
{
ScriptedContentFragmentMetadata GetMetadata(Guid id);
void Register(ScriptedContentFragmentOptions options);
string RenderContent(Guid id, NameValueCollection context);
void RenderContent(TextWriter writer, Guid id, NameValueCollection context);
string RenderHeader(Guid id, NameValueCollection context);
void RenderHeader(TextWriter writer, Guid id, NameValueCollection context);
}
Methods
ScriptedContentFragmentMetadata GetMetadata(Guid id);
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| id | Guid | Id | Required |
Return Type
ScriptedContentFragmentMetadata
void Register(ScriptedContentFragmentOptions options);
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| options | ScriptedContentFragmentOptions | Options | Required |
string RenderContent(Guid id, NameValueCollection context);
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| id | Guid | Id | Required | ||
| context | NameValueCollection | Context | Required |
Return Type
string
void RenderContent(TextWriter writer, Guid id, NameValueCollection context);
RenderContent(TextWriter, Guid, NameValueCollection) should be prefered to avoid intermediate string allocations
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| writer | TextWriter | Writer | Required | ||
| id | Guid | Id | Required | ||
| context | NameValueCollection | Context | Required |
string RenderHeader(Guid id, NameValueCollection context);
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| id | Guid | Id | Required | ||
| context | NameValueCollection | Context | Required |
Return Type
string
void RenderHeader(TextWriter writer, Guid id, NameValueCollection context);
RenderHeader(TextWriter, Guid, NameValueCollection) should be prefered to avoid intermediate string allocations
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| writer | TextWriter | Writer | Required | ||
| id | Guid | Id | Required | ||
| context | NameValueCollection | Context | Required |