DateTimeFormatInfo.GetFormat(Type) 메서드

정의

날짜 및 시간 서식 서비스를 제공하는 지정된 형식의 개체를 반환합니다.

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

매개 변수

formatType
Type

필요한 형식 지정 서비스의 형식입니다.

반환

가 현재 형식과 같으면 formatType 현재 DateTimeFormatInfo개체이고, null그렇지 않으면 입니다.

구현

설명

기본 데이터 형식에서 지원되는 메서드는 Format(String, IFormatProvider) 현재 DateTimeFormatInfo 개체가 매개 변수로 전달될 때 이 메서드를 IFormatProvider 호출합니다. 이 메서드는 IFormatProvider.GetFormat를 구현합니다.

적용 대상

추가 정보