Compartir a través de


ICustomFormatter.Format Method

Converts the value of a specified object to an equivalent string representation, using a specified format and culture-specific formatting information.

Namespace: System
Assembly: mscorlib (in mscorlib.dll)

Syntax

public string Format (
         stringformat,
         Objectarg,
         IFormatProviderformatProvider
)

Parameters

  • format
    A format string containing formatting specifications.
  • arg
    An object you want to format.
  • formatProvider
    An IFormatProvider object that supplies format information about the current object.

Return Value

Returns the string representation of the value of the arg parameter, formatted as specified by the format and formatProvider parameters.

Version Information

Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, and 4.1.

See Also

Reference

ICustomFormatter Interface
ICustomFormatter Members
System Namespace