The Add method appends the object specified to an appropriate SQL-DMO collection.
object.Add( ObjectToAdd )
Part | Description |
---|---|
object | Expression that evaluates to an object in the Applies To list |
ObjectToAdd | Expression that evaluates to an object of the type contained by the collection |
For any collection exposing the Add method, the method implements Microsoft® SQL Server™ component creation. Component creation can occur as the SQL-DMO object is added to its containing collection, or at some other application-directed time.
For more information about component creation by using the Add method of the SQL-DMO collection, see documentation for SQL-DMO objects and collections.
HRESULT Add(LPSQLDMOobject pObject);