TypeConverter.CreateInstance 메서드

정의

개체의 속성 값 집합이 지정된 Object를 다시 만듭니다.

오버로드

CreateInstance(ITypeDescriptorContext, IDictionary)

지정된 컨텍스트를 사용하여 이 TypeConverter가 연결된 형식의 인스턴스를 만들어 개체의 속성 값 집합을 제공합니다.

CreateInstance(IDictionary)

개체의 속성 값 집합이 지정된 Object를 다시 만듭니다.

CreateInstance(ITypeDescriptorContext, IDictionary)

지정된 컨텍스트를 사용하여 이 TypeConverter가 연결된 형식의 인스턴스를 만들어 개체의 속성 값 집합을 제공합니다.

public:
 virtual System::Object ^ CreateInstance(System::ComponentModel::ITypeDescriptorContext ^ context, System::Collections::IDictionary ^ propertyValues);
public virtual object CreateInstance (System.ComponentModel.ITypeDescriptorContext context, System.Collections.IDictionary propertyValues);
public virtual object? CreateInstance (System.ComponentModel.ITypeDescriptorContext? context, System.Collections.IDictionary propertyValues);
abstract member CreateInstance : System.ComponentModel.ITypeDescriptorContext * System.Collections.IDictionary -> obj
override this.CreateInstance : System.ComponentModel.ITypeDescriptorContext * System.Collections.IDictionary -> obj
Public Overridable Function CreateInstance (context As ITypeDescriptorContext, propertyValues As IDictionary) As Object

매개 변수

context
ITypeDescriptorContext

형식 컨텍스트를 제공하는 ITypeDescriptorContext입니다.

propertyValues
IDictionary

새 속성 값의 IDictionary입니다.

반환

Object

지정된 IDictionary를 나타내는 Object이거나, 개체를 만들 수 없으면 null입니다. 이 메서드는 항상 null을 반환합니다.

설명

변경할 수 없지만 변경할 수 있는 속성을 제공하려는 개체에는 이 메서드를 사용합니다.

상속자 참고

변환하려는 형식이 개체를 다시 만들어 값을 변경해야 하는 경우 이 메서드를 재정의합니다.

이 변환기가 호출되는 환경에 대한 추가 정보를 추출하려면 context 매개 변수를 사용합니다. 이 매개 변수 수 null항상 확인 합니다. 또한 컨텍스트 개체의 속성은 null을 반환할 수도 있습니다.

매개 변수에서 propertyValues 제공하는 사전에는 일련의 이름/값 쌍이 있으며, 각 속성에 대해 하나씩 반환됩니다 GetProperties(Object).

추가 정보

적용 대상

CreateInstance(IDictionary)

개체의 속성 값 집합이 지정된 Object를 다시 만듭니다.

public:
 System::Object ^ CreateInstance(System::Collections::IDictionary ^ propertyValues);
public object CreateInstance (System.Collections.IDictionary propertyValues);
public object? CreateInstance (System.Collections.IDictionary propertyValues);
member this.CreateInstance : System.Collections.IDictionary -> obj
Public Function CreateInstance (propertyValues As IDictionary) As Object

매개 변수

propertyValues
IDictionary

새 속성 값의 사전을 나타내는 IDictionary입니다.

반환

Object

지정된 IDictionary를 나타내는 Object이거나, 개체를 만들 수 없으면 null입니다. 이 메서드는 항상 null을 반환합니다.

설명

변경할 수 없지만 변경할 수 있는 속성을 제공하려는 개체에는 이 메서드를 사용합니다.

매개 변수에서 propertyValues 제공하는 사전에는 일련의 이름/값 쌍이 있으며, 각 속성에 대해 하나씩 반환됩니다 GetProperties.

추가 정보

적용 대상