ICustomFactory.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 a new instance of the specified type.
public:
MarshalByRefObject ^ CreateInstance(Type ^ serverType);
public MarshalByRefObject CreateInstance (Type serverType);
abstract member CreateInstance : Type -> MarshalByRefObject
Public Function CreateInstance (serverType As Type) As MarshalByRefObject
Parameters
- serverType
- Type
The type to activate.
Returns
A MarshalByRefObject associated with the specified type.
Remarks
CreateInstance
is called by the common language runtime when a new object of the specified type needs to be created. Override this method to provide your own custom class factory.
Applies to
שתף איתנו פעולה ב- GitHub
ניתן למצוא את המקור לתוכן זה ב- GitHub, שם ניתן גם ליצור ולסקור בעיות ולמשוך בקשות. לקבלת מידע נוסף, עיין במדריך התורמים שלנו.