Add (CustomProperties Collection)

ms132816.note(zh-cn,SQL.90).gif注意:
  下一版本的 Microsoft SQL Server 将删除该功能。请不要在新的开发工作中使用该功能,并尽快修改当前还在使用该功能的应用程序。

The Add method of a CustomProperties collection creates a new Property object, adds it to the collection, and returns a reference to the object. This method applies only to CustomProperties collections.

语法

Set vRet = object.Add(ByVal Value, [ByVal Name As String], [ByVal DataType As VBA.VbVarType)

备注

  • vRet
    A Variant variable that receives the instance of the new Property object. Instead of a variant, you can use a variable that has been declared as type DSO.Property to match the object being retrieved from the collection.
  • object
    An instance of a CustomProperties collection.
  • Value
    A Variant that contains the value of the Property object.
  • Name
    (Optional) A string that specifies the name of the Property object.
  • DataType
    (Optional) The data type of the property. A Microsoft® Visual Basic® data type defined in the VBA.VbVarType enumeration.

请参阅

参考

CustomProperties Collection
Property Object (DSO)

帮助和信息

获取 SQL Server 2005 帮助