Note
Kailangan ng pahintulot para ma-access ang page na ito. Maaari mong subukang mag-sign in o magpalit ng mga direktoryo.
Ang pag-access sa pahinang ito ay nangangailangan ng pahintulot. Maaari mong subukang baguhin ang mga direktoryo.
Applies to: SharePoint 2016 | SharePoint Foundation 2013 | SharePoint Online | SharePoint Server 2013
Returns the file extension for the specified file.
<GetFileExtension
HTMLEncode = "TRUE" | "FALSE">
</GetFileExtension>
Elements and attributes
The following sections describe attributes, child elements, and parent elements.
Attributes
| Attribute | Description |
|---|---|
| HTMLEncode |
Optional Boolean. TRUE to convert embedded characters so that they are displayed as text in the browser. In other words, characters that could be confused with HTML tags are converted to entities. |
Child elements
Parent elements
Numerous
Occurrences
- Minimum: 0
- Maximum: Unbounded
Example
The following line <GetFileExtension>somefile.xls</GetFileExtension> would return "xls".
The following example returns file extensions from the Lookup column, except in cases where extension equals "htm".
<Switch>
<Expr>
<GetFileExtension>
<LookupColumn StripWS="TRUE" />
</GetFileExtension>
</Expr>
<Case Value="htm" />
<Default>
<GetFileExtension HTMLEncode="TRUE">
<LookupColumn StripWS="TRUE" />
</GetFileExtension>
</Default>
</Switch>