Utility.FormatDateTime - Méthode
Espace de noms : Microsoft.SharePoint.Client.Utilities
Assemblys : Microsoft.SharePoint.Client.Silverlight (dans Microsoft.SharePoint.Client.Silverlight.dll); Microsoft.SharePoint.Client.Phone (dans Microsoft.SharePoint.Client.Phone.dll) Microsoft.SharePoint.Client (dans Microsoft.SharePoint.Client.dll)
Syntaxe
'Déclaration
Public Shared Function FormatDateTime ( _
context As ClientRuntimeContext, _
web As Web, _
datetime As DateTime, _
format As DateTimeFormat _
) As ClientResult(Of String)
'Utilisation
Dim context As ClientRuntimeContext
Dim web As Web
Dim datetime As DateTime
Dim format As DateTimeFormat
Dim returnValue As ClientResult(Of String)
returnValue = Utility.FormatDateTime(context, _
web, datetime, format)
public static ClientResult<string> FormatDateTime(
ClientRuntimeContext context,
Web web,
DateTime datetime,
DateTimeFormat format
)
Paramètres
- context
Type : Microsoft.SharePoint.Client.ClientRuntimeContext
- web
Type : Microsoft.SharePoint.Client.Web
- datetime
Type : System.DateTime
- format
Type : Microsoft.SharePoint.Client.Utilities.DateTimeFormat
Valeur renvoyée
Type : Microsoft.SharePoint.Client.ClientResult<String>
RenvoieClientResult<T>