ToString Method
Definition
- Namespace
- Codebelt.Extensions.Asp.Versioning
- Assemblies
- Codebelt.Extensions.Asp.Versioning.dll
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
ToString(string)
Returns the text representation of the version using the specified format and format provider. Asp.Versioning.ApiVersionFormatProvider
public override string ToString(string format)
Parameters
formatstringThe format to return the text representation in. The value can be
nullor empty.
Returns
Exceptions
- FormatException
The specified
formatis not one of the supported format values.
ToString(string, IFormatProvider)
Formats the value of the current instance using the specified format.
public override string ToString(string format, IFormatProvider formatProvider)
Parameters
formatstringThe format to use.
-or-
A null reference (
Nothingin Visual Basic) to use the default format defined for the type of the IFormattable implementation.formatProviderIFormatProviderThe provider to use to format the value.
-or-
A null reference (
Nothingin Visual Basic) to obtain the numeric format information from the current locale setting of the operating system.
Returns
- string
The value of the current instance in the specified format.