PropertyDescriptor.CreateInstance(Type) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates an instance of the specified type.
protected:
System::Object ^ CreateInstance(Type ^ type);
protected object CreateInstance (Type type);
protected object? CreateInstance (Type type);
member this.CreateInstance : Type -> obj
Protected Function CreateInstance (type As Type) As Object
Parameters
Returns
A new instance of the type.
Remarks
CreateInstance looks for a constructor that takes the specified type. If it finds a constructor, the type of the property is passed in.
Converters and editors use this method to create versions of a component. This method enables a single component to be reused for more than one type.
Applies to
See also
Spolupráca s nami v službe GitHub
Zdroj tohto obsahu nájdete v službe GitHub, kde môžete vytvárať a skúmať problémy a žiadosti o prijatie zmien. Ďalšie informácie nájdete v našom sprievodcovi prispievateľom.