返回指定网站中使用的日期格式的一个示例。
命名空间: Microsoft.SharePoint.Utilities
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Public Shared Function GetExampleDateFormat ( _
web As SPWeb, _
stYearLabel As String, _
stMonthLabel As String, _
stDayLabel As String _
) As String
用法
Dim web As SPWeb
Dim stYearLabel As String
Dim stMonthLabel As String
Dim stDayLabel As String
Dim returnValue As String
returnValue = SPUtility.GetExampleDateFormat(web, _
stYearLabel, stMonthLabel, stDayLabel)
public static string GetExampleDateFormat(
SPWeb web,
string stYearLabel,
string stMonthLabel,
string stDayLabel
)
参数
web
类型:Microsoft.SharePoint.SPWeb一个表示该网站的Microsoft.SharePoint.SPWeb对象。
stYearLabel
类型:System.String一个字符串,包含表示示例年的数字。
stMonthLabel
类型:System.String一个字符串,包含表示示例月份的数字。
stDayLabel
类型:System.String一个字符串,包含表示示例天的数字。
返回值
类型:System.String
一个字符串,表示在网站中使用的日期格式。