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;
If service is the Type object for the DateTimeFormatInfo class, then this instance of DateTimeFormatInfo is returned. Otherwise, null is returned.
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.
DateTimeFormatInfo Class | DateTimeFormatInfo Members | System.Globalization Namespace