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!

DateTimeFormatInfo.GetServiceObject

Gets the service object of the specified type.

[Visual Basic]
Overridable Public Function GetServiceObject( _
   ByVal service As Type _
) As Object
[C#]
public virtual object GetServiceObject(
   Type service
);
[C++]
public: virtual Object* GetServiceObject(
   Type* service
);
[JScript]
public function GetServiceObject(
   service : Type
) : Object;

Parameters

service
The class object of the format-information object to get.

Return Value

If service is the Type object for the DateTimeFormatInfo class, then this instance of DateTimeFormatInfo is returned. Otherwise, null is returned.

Remarks

This method is invoked by the Format(String, IServiceObjectProvider) method supported by the base data types when this instance is passed as the IServiceObjectProvider. It implements IServiceObjectProvider.GetServiceObject.

See Also

DateTimeFormatInfo Class | DateTimeFormatInfo Members | System.Globalization Namespace