DateOptions.GetHoursString - Méthode
Renvoie les valeurs d'heure utilisés pour afficher les valeurs d'heure au format spécifié.
Espace de noms : Microsoft.SharePoint.Utilities
Assembly : Microsoft.SharePoint (dans Microsoft.SharePoint.dll)
Syntaxe
'Déclaration
Public Function GetHoursString ( _
hoursMode24 As Boolean, _
hasMinutes As Boolean _
) As String()
'Utilisation
Dim instance As DateOptions
Dim hoursMode24 As Boolean
Dim hasMinutes As Boolean
Dim returnValue As String()
returnValue = instance.GetHoursString(hoursMode24, _
hasMinutes)
public string[] GetHoursString(
bool hoursMode24,
bool hasMinutes
)
Paramètres
hoursMode24
Type : System.Booleantrue d'utiliser un format de 24 heures ; dans le cas contraire, false.
hasMinutes
Type : System.Booleantrue pour inclure les minutes dans la chaîne heures ; dans le cas contraire, false.
Valeur renvoyée
Type : []
Un tableau de chaînes qui contient les valeurs d'heure ; par exemple, « 00 "," 01 "," 02 "," 03 "," 04 "," 05 "," 06 "," 07 "," 08 "," 09 "," 10 "," 11 "," 12 "," 13 "," 14 "," 15 "," 16 "," 17 "," 18 "," 19 "," 20 "," 21 "," 22 », « 23 ».