Property Object (DSO)

ms133431.note(de-de,SQL.90).gifHinweis:
  Dieses Feature wird in der nächsten Version von Microsoft SQL Server entfernt. Verwenden Sie dieses Feature nicht zum Entwickeln neuer Anwendungen, und planen Sie das Ändern von Anwendungen, in denen es zurzeit verwendet wird, zum frühstmöglichen Zeitpunkt ein.

Use the Property object to save user-defined items to a CustomPropertiescollection. You can define Property objects and add them to the CustomProperties collection of any Decision Support Objects (DSO) object to store information you want to associate with the DSO object. You provide a name, value, and data type for each Property object.

Hinweise

The Property object has properties, but no collections or methods. The Property object is unlike other DSO objects in that it does not implement any of the interfaces, methods, properties, or collections of other DSO objects.

Examples

Creating a New Custom Property

Use the following code to create a new custom property:

'Assume an object of ClassType clsDimension exists.
'Add a custom property.
Dim dsoProp As DSO.Property
Set dsoProp = dsoDim.CustomProperties.Add(55, "Age", vbInteger)

'Retrieve custom property values.
Dim dsoProp2 As DSO.Property
Set dsoProp2 = dsoDim.CustomProperties(1)
Debug.Print dsoProp2.Name, dsoProp2.Value

Siehe auch

Verweis

CustomProperties Collection
Properties, Property Object

Hilfe und Informationen

Informationsquellen für SQL Server 2005