如何在VB.NET中实现IPersistPropertyBag接口 [英] How do I implement the IPersistPropertyBag Interface in VB.NET

查看:84
本文介绍了如何在VB.NET中实现IPersistPropertyBag接口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在VB.NET中为ActiveX控件实现IPersistPropertyBag接口,因此任何示例代码或关于该接口的文章的链接都将受到赞赏。

解决方案

为什么实现该接口应该与其他接口不同?

  MyBag 
Implements IPersistPropertyBag

Sub 加载( ByVal propertyBag As IPropertyBag, ByVal errorLog As 整数 Implements IPersistPropertyBag.Load
结束 Sub
结束


I want to implement the IPersistPropertyBag Interface for an ActiveX Control in VB.NET so any sample code or link to an article about that interface would be appreciated.

解决方案

Why implementing that interface should be different from other interfaces?

Class MyBag
    Implements IPersistPropertyBag

    Sub Load(ByVal propertyBag As IPropertyBag, ByVal errorLog As Integer) Implements IPersistPropertyBag.Load
    End Sub
End Class


这篇关于如何在VB.NET中实现IPersistPropertyBag接口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆