NullableConverter.CreateInstance(ITypeDescriptorContext, IDictionary) Método

Definição

Cria uma instância do tipo ao qual esse TypeConverter está associado, usando o contexto especificado, dado um conjunto de valores de propriedade para o objeto.Creates an instance of the type that this TypeConverter is associated with, using the specified context, given a set of property values for the object.

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

Parâmetros

context
ITypeDescriptorContext

Um ITypeDescriptorContext que fornece um contexto de formato.An ITypeDescriptorContext that provides a format context.

propertyValues
IDictionary

Um IDictionary de novos valores de propriedade.An IDictionary of new property values.

Retornos

Object

Um Object que representa o IDictionary fornecido ou null se o objeto não puder ser criado.An Object representing the given IDictionary, or null if the object cannot be created. Esse método sempre retorna null.This method always returns null.

Aplica-se a

Confira também