SPUtility.GetExampleDateFormat-Methode
Gibt ein Beispiel für das Format, das für Datumsangaben am angegebenen Standort verwendet wird.
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Shared Function GetExampleDateFormat ( _
web As SPWeb, _
stYearLabel As String, _
stMonthLabel As String, _
stDayLabel As String _
) As String
'Usage
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
)
Parameter
web
Typ: Microsoft.SharePoint.SPWebEin Microsoft.SharePoint.SPWeb -Objekt, das die Website darstellt.
stYearLabel
Typ: System.StringEine Zeichenfolge, die eine Zahl, ein Beispiel Jahr enthält.
stMonthLabel
Typ: System.StringEine Zeichenfolge, die eine Zahl, die für einen Monat Beispiel enthält.
stDayLabel
Typ: System.StringEine Zeichenfolge, die eine Zahl, einen Beispiel-Tag enthält.
Rückgabewert
Typ: System.String
Eine Zeichenfolge, die das Format darstellt, das in der Website verwendet wird.