다음을 통해 공유


NumberFormatInfo.GetFormat 메서드

숫자 형식 지정 서비스를 제공하는 지정된 형식의 개체를 가져옵니다.

네임스페이스: System.Globalization
어셈블리: mscorlib(mscorlib.dll)

구문

‘선언
Public Function GetFormat ( _
    formatType As Type _
) As Object
‘사용 방법
Dim instance As NumberFormatInfo
Dim formatType As Type
Dim returnValue As Object

returnValue = instance.GetFormat(formatType)
public Object GetFormat (
    Type formatType
)
public:
virtual Object^ GetFormat (
    Type^ formatType
) sealed
public final Object GetFormat (
    Type formatType
)
public final function GetFormat (
    formatType : Type
) : Object

매개 변수

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

반환 값

formatType이 현재 NumberFormatInfo 형식과 같은 경우 현재 NumberFormatInfo이고, 그렇지 않으면 Null 참조(Visual Basic의 경우 Nothing)입니다.

설명

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

플랫폼

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

.NET Framework에서 모든 플래폼의 모든 버전을 지원하지는 않습니다. 지원되는 버전의 목록은 시스템 요구 사항을 참조하십시오.

버전 정보

.NET Framework

2.0, 1.1, 1.0에서 지원

.NET Compact Framework

2.0, 1.0에서 지원

참고 항목

참조

NumberFormatInfo 클래스
NumberFormatInfo 멤버
System.Globalization 네임스페이스
IFormatProvider
GetFormat