ICustomFactory Interface
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.
Enables users to write activation code for managed objects that extend MarshalByRefObject.
public interface class ICustomFactory
public interface ICustomFactory
[System.Runtime.InteropServices.ComVisible(true)]
public interface ICustomFactory
type ICustomFactory = interface
[<System.Runtime.InteropServices.ComVisible(true)>]
type ICustomFactory = interface
Public Interface ICustomFactory
- Attributes
Remarks
You can enable custom activation by providing a proxy class that implements ICustomFactory
and attributing the MarshalByRefObject class with the ProxyAttribute. When the class is activated, the proxy's CreateInstance method is called by the common language runtime to activate the class.
Methods
CreateInstance(Type) |
Creates a new instance of the specified type. |
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om