SPUtility.FormatStringWithListType method (String, SPList, Boolean)

Format a string by inserting the name that corresponds to a list’s SPBaseType, optionally converting the type name to lowercase.

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public static string FormatStringWithListType(
	string format,
	SPList list,
	bool bInLowerCase
)

Parameters

format
Type: System.String

The string to format.

list
Type: Microsoft.SharePoint.SPList

The list whose type name to insert.

bInLowerCase
Type: System.Boolean

true to convert to lowercase; otherwise, false.

Return value

Type: System.String
The formatted string.
Show: