由网友(穿著拖鞋去蹦迪)分享简介:有没有一种方法来指定一个方法被调用后自动一部分已经组成?该方法,也可以根据该合成的部分或在类做组合物。 Is there a way to specify that a method gets called automatically after a part has been composed? The metho...
有没有一种方法来指定一个方法被调用后自动一部分已经组成?该方法,也可以根据该合成的部分或在类做组合物。
Is there a way to specify that a method gets called automatically after a part has been composed? The method could be called on the composed part or in the class doing the composition.
推荐答案
是的。如果你的类实现了IPartImportsSatisfiedNotification接口,那么MEF容器将调用 OnImportsSatisfied
在合适的时间。
Yes. If your class implements the IPartImportsSatisfiedNotification interface, then the MEF container will call OnImportsSatisfied
at the right time.
相关推荐
最新文章