AddSet Method (AttributeSets collection)

                    

 

This method creates a new attribute set on the server and attaches it to the Server.AttributeSets collection. The method returns a reference to the created attribute set as a PointAttributes object.

 

Syntax

object.AddSet Name, Attributes

The AddSet method syntax has these parts:

Part

Description

object

An object expression that evaluates to an AttributeSets object.

Name

A string containing the desired name for the new attribute set.

Attributes

A NamedValues collection containing the definition of the attributes for the new set. Each contained NamedValue supplies the attribute name as its Name property and the attribute type and default value in its Value property.

 

Trappable Errors

In addition to generic errors (such as Out of Memory), the following errors may occur:

Error

Description

pseATTRSETADD

Failed to create an attribute set. The description property of the error object contains more detailed information

pseATTRSETATTRIBFETCH

Failed to load the attribute sets collection from the server.

pseACCESSDENIED

Insufficient privileges to create an attribute set.

pseATTRSETRETRIEVE

Unable to retrieve existing attribute sets from server.

pseNOSERVERSUPPORT

Server does not support the operation

pseATTRSETINIT

Failure initializing the Attributesets collection. See description property of the error object for more detail.

Enabling Operational Intelligence