共用方式為


SPUtility.FormatStringWithListType method (String, SPList)

格式字串插入會對應至清單SPBaseType的名稱。

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

Syntax

'宣告
Public Shared Function FormatStringWithListType ( _
    format As String, _
    list As SPList _
) As String
'用途
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
)

參數

  • format
    Type: System.String

    若要設定的格式,例如"Allow 此 {0} 來接收電子郵件"字串。

傳回值

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

請參閱

參照

SPUtility class

SPUtility members

FormatStringWithListType overload

Microsoft.SharePoint.Utilities namespace