DateTimeFormatInfo.GetFormat(Type) Método
Definição
Retorna um objeto do tipo especificado que fornece um serviço de formatação de data e hora.Returns an object of the specified type that provides a date and time formatting service.
public:
virtual System::Object ^ GetFormat(Type ^ formatType);
public object GetFormat (Type formatType);
public object? GetFormat (Type? formatType);
abstract member GetFormat : Type -> obj
override this.GetFormat : Type -> obj
Public Function GetFormat (formatType As Type) As Object
Parâmetros
- formatType
- Type
O tipo do serviço de formatação necessário.The type of the required formatting service.
Retornos
O objeto atual se formatType for igual ao tipo do DateTimeFormatInfo atual; caso contrário, null.The current object, if formatType is the same as the type of the current DateTimeFormatInfo; otherwise, null.
Implementações
Comentários
O Format(String, IFormatProvider) método suportado pelos tipos de dados base invoca esse método quando o DateTimeFormatInfo objeto atual é passado como o IFormatProvider parâmetro.The Format(String, IFormatProvider) method supported by the base data types invoke this method when the current DateTimeFormatInfo object is passed as the IFormatProvider parameter. Esse método implementa IFormatProvider.GetFormat.This method implements IFormatProvider.GetFormat.