NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

DateTime.GetAllDateTimes (Char, IServiceObjectProvider)

OBSOLETE. Use GetDateTimeFormats instead.

[Visual Basic]
Overloads Public Function GetAllDateTimes( _
   ByVal format As Char, _
   ByVal isop As IServiceObjectProvider _
) As String ()
[C#]
public string[] GetAllDateTimes(
   char format,
   IServiceObjectProvider isop
);
[C++]
public: String* GetAllDateTimes(
   __wchar_t format,
   IServiceObjectProvider* isop
) [];
[JScript]
public function GetAllDateTimes(
   format : Char,
   isop : IServiceObjectProvider
) : String[];

Parameters

format
A default format.
isop
The IServiceObjectProvider interface.

Return Value

A string array containing this instance formatted as specified.

Exceptions

Exception Type Condition
ArgumentException If the format is not one of the valid character formats.

Remarks

The GetAllDateTimes method contains:

The strings returned are properly formatted date and time strings for the current instance of DateTime. (See CurrentCulture for addition information on cultures.)

The format parameter calls the default characters ('F', 'G', 'D', etc.) at the top of the DateTimeFormatInfo.

The isop parameter provides the IServiceObjectProvider instance, which provides the DateTimeFormatInfo instance.

Returns a String array containing all of the known date and time options formatted for the specified format and culture.

See Also

DateTime Structure | DateTime Members | System Namespace | DateTime.GetAllDateTimes Overload List | Char | String