Enum.IFormattable.ToString(String, IFormatProvider) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Attention
The provider argument is not used. Please use ToString(String).
Cette surcharge de méthode est obsolète ; utilisez ToString(String).
virtual System::String ^ System.IFormattable.ToString(System::String ^ format, IFormatProvider ^ provider) = IFormattable::ToString;
[System.Obsolete("The provider argument is not used. Please use ToString(String).")]
string IFormattable.ToString(string format, IFormatProvider provider);
[<System.Obsolete("The provider argument is not used. Please use ToString(String).")>]
abstract member System.IFormattable.ToString : string * IFormatProvider -> string
override this.System.IFormattable.ToString : string * IFormatProvider -> string
Function ToString (format As String, provider As IFormatProvider) As String Implements IFormattable.ToString
Paramètres
- format
- String
Spécification de format.
- provider
- IFormatProvider
Implémentation IFormatProvider qui fournit des informations spécifiques à la culture sur le format de la valeur retournée. Cet argument n’est pas utilisé.
Retours
Représentation sous forme de chaîne de la valeur de cette instance, comme spécifié par format.
Implémente
- Attributs
Exceptions
format ne contient pas de spécification de format valide.
format est égal à « X », mais le type d’énumération est inconnu.