Compartilhar via


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

Valor retornado

Tipo: Microsoft.SharePoint.Client.ClientResult<String>
RetornaClientResult<T>

Ver também

Referência

Utility classe

Utility membros

Microsoft.SharePoint.Client.Utilities namespace