【VB6】VB6类库项目中的Persistable

前端之家收集整理的这篇文章主要介绍了【VB6】VB6类库项目中的Persistable前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

原文链接

https://msdn.microsoft.com/en-us/library/aa268076(v=vs.60).aspx

转载内容

Visual Basic Reference

Visual Studio 6.0

Persistable Property

See Also ExampleApplies To

Sets a value that determines if an object can save and restore data across instances. May only be set at design time.

Syntax

object.Persistable[=number]

ThePersistableproperty Syntax has these parts:

Part Description
object Anobject expressionthat evaluates to an object in the Applies To list.
number An integer that specifies persistence behavior,as described in Settings.

Settings

The settings fornumberare:

Constant
Setting vbNotPersistable 0 (Default) The object can't be persisted.
vbPersistable 1 The object can be persisted.

Remarks

ThePersistableproperty is only available for classes that are public and creatable. WhenPersistableis set tovbPersistable,the following events are added to the class:InitProperties,ReadProperties,andWriteProperties. ThePropertyChangedmethod is added to the class as well.

原文链接:https://www.f2er.com/vb/257129.html

猜你在找的VB相关文章