Documentation > Services API > ServicesOutput > RenderMetaField(String,String,Boolean,String)
RenderMetaField
Accepts a name and content value and renders a standard html meta tag. Use when building meta output functions. Used by MetaOutputBuilder.
public System.String RenderMetaField(String,String,Boolean,String)
Parameters
Name | Description | Type |
---|---|---|
name | Name of the meta tag | System.String |
content | Content of the meta tag | System.String |
XHTMLTag | Toggle between closing tags "/>" if true and ">" if false | System.Boolean |
nameAttributeOverride | Override for the name attribute of the meta tag. Default is "name" | System.String |
Code Example
C#
Sample:
Out.WriteLine( ServicesOutput.RenderMetaField("metaName", "content of the meta tag", true) );