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} 來接收電子郵件"字串。
list
Type: Microsoft.SharePoint.SPList其基底類型名稱插入清單。
傳回值
Type: System.String
格式化的字串。