TypeConverter.ConvertToInvariantString 메서드
정의
지정된 값을 고정 문화권의 문자열 표현으로 변환합니다.Converts the specified value to a culture-invariant string representation.
오버로드
ConvertToInvariantString(Object) |
지정된 값을 고정 문화권의 문자열 표현으로 변환합니다.Converts the specified value to a culture-invariant string representation. |
ConvertToInvariantString(ITypeDescriptorContext, Object) |
지정된 context를 사용하여, 지정된 값을 고정 문화권의 문자열 표현으로 변환합니다.Converts the specified value to a culture-invariant string representation, using the specified context. |
ConvertToInvariantString(Object)
지정된 값을 고정 문화권의 문자열 표현으로 변환합니다.Converts the specified value to a culture-invariant string representation.
public:
System::String ^ ConvertToInvariantString(System::Object ^ value);
public string ConvertToInvariantString (object value);
member this.ConvertToInvariantString : obj -> string
Public Function ConvertToInvariantString (value As Object) As String
매개 변수
반환
변환된 값을 나타내는 String입니다.A String that represents the converted value.
예외
변환할 수 없는 경우The conversion cannot be performed.
설명
context
매개 변수를 사용 하 여이 변환기가 호출 되는 환경에 대 한 추가 정보를 추출할 수 있습니다.The context
parameter can be used to extract additional information about the environment from which this converter is being invoked. 이 매개 변수는 null
이 될 수 있으므로 항상 확인해야 합니다.This can be null
, so always check. 또한 컨텍스트 개체의 속성은 null
을 반환할 수도 있습니다.Also, properties on the context object can return null
.
값 포맷터의 구현에 따라 반환 된 문자열을 다시 값 포맷터에 전달 하 여 개체의 인스턴스를 다시 만들 수 있습니다.Depending on the implementation of the value formatter, it might be possible to pass the returned string back into the value formatter to re-create an instance of the object.
추가 정보
적용 대상
ConvertToInvariantString(ITypeDescriptorContext, Object)
지정된 context를 사용하여, 지정된 값을 고정 문화권의 문자열 표현으로 변환합니다.Converts the specified value to a culture-invariant string representation, using the specified context.
public:
System::String ^ ConvertToInvariantString(System::ComponentModel::ITypeDescriptorContext ^ context, System::Object ^ value);
public string ConvertToInvariantString (System.ComponentModel.ITypeDescriptorContext context, object value);
member this.ConvertToInvariantString : System.ComponentModel.ITypeDescriptorContext * obj -> string
Public Function ConvertToInvariantString (context As ITypeDescriptorContext, value As Object) As String
매개 변수
- context
- ITypeDescriptorContext
형식 컨텍스트를 제공하는 ITypeDescriptorContext입니다.An ITypeDescriptorContext that provides a format context.
반환
변환된 값을 나타내는 String입니다.A String that represents the converted value.
예외
변환할 수 없는 경우The conversion cannot be performed.
설명
이 변환기가 호출되는 환경에 대한 추가 정보를 추출하려면 context
매개 변수를 사용합니다.Use the context
parameter to extract additional information about the environment from which this converter is invoked. 이 매개 변수 수 null
항상 확인 합니다.This parameter can be null
, so always check it. 또한 컨텍스트 개체의 속성은 null
을 반환할 수도 있습니다.Also, properties on the context object can return null
.
값 포맷터의 구현에 따라 반환 된 문자열을 다시 값 포맷터에 전달 하 여 개체의 인스턴스를 다시 만들 수 있습니다.Depending on the implementation of the value formatter, it might be possible to pass the returned string back into the value formatter to re-create an instance of the object.