SPUtility.FormatStringWithListType Method (String, SPList)
Format a string by inserting the name that corresponds to a list’s SPBaseType.
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Syntax
'Declaration
Public Shared Function FormatStringWithListType ( _
format As String, _
list As SPList _
) As String
'Usage
Dim format As String
Dim list As SPList
Dim returnValue As String
returnValue = SPUtility.FormatStringWithListType(format, _
list)
public static string FormatStringWithListType(
string format,
SPList list
)
Parameters
format
Type: System.StringThe string to format, such as “Allow this {0} to receive e-mail”.
list
Type: Microsoft.SharePoint.SPListThe list whose base type name to insert.
Return Value
Type: System.String
The formatted string.