Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AF SDK Reference

AFTimeSpan.ToString Method (IFormatProvider)

  • Last UpdatedJan 12, 2026
  • 2 minute read
AFTimeSpan.ToString Method (IFormatProvider)
Returns a String that represents the current object.

Namespace:  OSIsoft.AF.Time
Assembly:  OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.2.0.7

Syntax

public string ToString(
	IFormatProvider provider
)
Public Function ToString ( 
	provider As IFormatProvider
) As String

Dim instance As AFTimeSpan
Dim provider As IFormatProvider
Dim returnValue As String

returnValue = instance.ToString(provider)
public:
String^ ToString(
	IFormatProvider^ provider
)
member ToString : 
        provider : IFormatProvider -> string 

Parameters

provider
Type: SystemIFormatProvider
An object that supplies culture-specific formatting information. If , then the DateTimeFormatInfo associated with the current culture is used.

Return Value

Type: String
Returns a String that represents the current object.

Remarks

This is an override of the Object.ToString method which returns a human-readable string for the object. If the object has a Name property, then the value of that property is normally returned. For collections, the AFIdentity is normally returned.

Version Information

AFSDK


See Also

In This Topic
Related Links