Gets the specified service object.
[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 NumberFormatInfo class, then this instance of NumberFormatInfo is returned. Otherwise, null is returned.
This method provides the implementation for IServiceObjectProvider.GetServiceObject.
This method is invoked by the Format(String, IServiceObjectProvider) method supported by the base data types when this instance is passed as the IServiceObjectProvider.
NumberFormatInfo Class | NumberFormatInfo Members | System.Globalization Namespace