CultureInfo.GetFormat(Type) 메서드

정의

지정된 형식의 서식을 지정하는 방법을 정의하는 개체를 가져옵니다.

public:
 virtual System::Object ^ GetFormat(Type ^ formatType);
public virtual object GetFormat(Type formatType);
abstract member GetFormat : Type -> obj
override this.GetFormat : Type -> obj
Public Overridable Function GetFormat (formatType As Type) As Object

매개 변수

formatType
Type

Type 서식 개체를 가져올 대상입니다. 이 메서드는 및 DateTimeFormatInfo 형식만 지원합니다NumberFormatInfo.

반품

클래스의 NumberFormat 개체인 경우 formatType 현재CultureInfo에 대한 기본 숫자 서식 정보를 포함하는 속성 NumberFormatInfoTypeNumberFormatInfo 값입니다.

-또는-

클래스의 DateTimeFormat 개체인 DateTimeFormatInfo 경우 formatType 현재CultureInfo에 대한 기본 날짜 및 시간 형식 정보를 포함하는 속성의 DateTimeFormatInfo 값입니다Type.

-또는-

null(다른 개체인 경우 formatType )입니다.

구현

설명

GetFormatIFormatProvider.GetFormat를 구현합니다.

NumberFormatInfo 는 기본 데이터 형식의 Format 메서드와 함께 사용되는 문화권별 숫자 형식을 제공합니다. DateTimeFormatInfo 는 특정 문화권에 대한 날짜 및 시간 값의 형식을 지정하는 방법을 제어합니다.

적용 대상

추가 정보