CompoundObjectId.CompoundObjectId(ObjectId, Database) Constructor   MG2009New

Visual Basic
Public Sub New(
    id As ObjectId, 
    hostDatabase As Database
)
C#
public CompoundObjectId(
    ObjectId id, 
    Database hostDatabase
);
Parameters
Parameters 
Description 
ObjectId id 
ObjectId of the DBObject that this CompoundObjectId is going to reference. 
Database hostDatabase 
The host database. If null, the database is taken from the ObjectId (even if it is in XREF database). 
Description

Creates CompoundObjectId from an ordinary ObjectId. If the host database is null, the host database is obtained from the given ObjectId. Even if it is in XREF database, the database hosting the XREF is obtained.

Links