Convert.Coerce2(Object, TypeCode, Boolean) 메서드

정의

지정된 값을 지정된 값으로 변환하여 TypeCode선택적으로 데이터 손실을 허용합니다.

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

public:
 static System::Object ^ Coerce2(System::Object ^ value, TypeCode target, bool truncationPermitted);
public static object Coerce2(object value, TypeCode target, bool truncationPermitted);
static member Coerce2 : obj * TypeCode * bool -> obj
Public Shared Function Coerce2 (value As Object, target As TypeCode, truncationPermitted As Boolean) As Object

매개 변수

value
Object

새 형식으로 변환할 값입니다.

target
TypeCode

변환 value 할 형식입니다.

truncationPermitted
Boolean

true데이터 손실을 허용하려면 그렇지 않으면 . false

반품

value 형식으로 변환됩니다 target .

적용 대상