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)

public static string FormatStringWithListType(
	string format,
	SPList list
)

Parameters

format
Type: System.String

The string to format, such as “Allow this {0} to receive e-mail”.

list
Type: Microsoft.SharePoint.SPList

The list whose base type name to insert.

Return value

Type: System.String
The formatted string.
Show: