다음을 통해 공유


ObjectConverter.ConvertValue(Object, Type, String) 메서드

정의

개체를 한 개체 형식에서 다른 개체 형식으로 변환합니다. 이 클래스는 사용되지 않습니다. 대신 Convert 클래스와 Format(String, Object) 메서드를 사용합니다.

이 API는 제품 인프라를 지원하며 코드에서 직접 사용되지 않습니다.

public:
 static System::Object ^ ConvertValue(System::Object ^ value, Type ^ toType, System::String ^ formatString);
public static object ConvertValue (object value, Type toType, string formatString);
static member ConvertValue : obj * Type * string -> obj
Public Shared Function ConvertValue (value As Object, toType As Type, formatString As String) As Object

매개 변수

value
Object

변환할 개체입니다.

toType
Type

value를 변환할 대상 Type입니다.

formatString
String

변환하는 동안 적용할 서식 문자열입니다.

반환

Object

변환된 개체입니다.

예외

이 메서드를 사용하여 ValuetoType 형식으로 변환할 수 없습니다.

적용 대상