Aracılığıyla paylaş


InstanceCreationEditor.CreateInstance(ITypeDescriptorContext, Type) Yöntem

Tanım

Türetilmiş bir sınıfta geçersiz kılındığında, belirtilen türün bir örneğini döndürür.

public:
 abstract System::Object ^ CreateInstance(System::ComponentModel::ITypeDescriptorContext ^ context, Type ^ instanceType);
public abstract object CreateInstance (System.ComponentModel.ITypeDescriptorContext context, Type instanceType);
public abstract object? CreateInstance (System.ComponentModel.ITypeDescriptorContext context, Type instanceType);
abstract member CreateInstance : System.ComponentModel.ITypeDescriptorContext * Type -> obj
Public MustOverride Function CreateInstance (context As ITypeDescriptorContext, instanceType As Type) As Object

Parametreler

context
ITypeDescriptorContext

Bağlam bilgileri.

instanceType
Type

Belirtilen tür.

Döndürülenler

Belirtilen veya türünün nullbir örneği.

Şunlara uygulanır