共用方式為


SPUtility.FormatStringWithListType method (String, SPList, Boolean)

格式字串插入會對應至清單SPBaseType,選擇性地將類型名稱轉換成小寫的名稱。

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

Syntax

'宣告
Public Shared Function FormatStringWithListType ( _
    format As String, _
    list As SPList, _
    bInLowerCase As Boolean _
) As String
'用途
Dim format As String
Dim list As SPList
Dim bInLowerCase As Boolean
Dim returnValue As String

returnValue = SPUtility.FormatStringWithListType(format, _
    list, bInLowerCase)
public static string FormatStringWithListType(
    string format,
    SPList list,
    bool bInLowerCase
)

參數

  • bInLowerCase
    Type: System.Boolean

    true轉換為小寫 ;否則,請false。

傳回值

Type: System.String
格式化的字串。

請參閱

參照

SPUtility class

SPUtility members

FormatStringWithListType overload

Microsoft.SharePoint.Utilities namespace