Utility.FormatDateTime método
Namespace: Microsoft.SharePoint.Client.Utilities
Assemblies: Microsoft.SharePoint.Client.Silverlight (em Microsoft.SharePoint.Client.Silverlight.dll); Microsoft.SharePoint.Client.Phone (em Microsoft.SharePoint.Client.Phone.dll) Microsoft.SharePoint.Client (em Microsoft.SharePoint.Client.dll)
Sintaxe
'Declaração
Public Shared Function FormatDateTime ( _
context As ClientRuntimeContext, _
web As Web, _
datetime As DateTime, _
format As DateTimeFormat _
) As ClientResult(Of String)
'Uso
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
)
Parâmetros
- context
Tipo: Microsoft.SharePoint.Client.ClientRuntimeContext
- web
Tipo: Microsoft.SharePoint.Client.Web
- datetime
Tipo: System.DateTime
- format
Tipo: Microsoft.SharePoint.Client.Utilities.DateTimeFormat
Valor retornado
Tipo: Microsoft.SharePoint.Client.ClientResult<String>
RetornaClientResult<T>