The IObjectReference type exposes the following members.

ToggleMethods

Type NameDescription
Public methodGetClassIdentity
Returns the class name of the object represented by this identity.
Public methodGetObjectIdentity
Returns the ID, name, or path of an independent object to which this identity refers.

The returned string can be an ID (in GUID format) or, if fetchless instantiation was used to create the object, the string might contain a name or path. This method returns Null if the identity is referencing a dependent object or an unevaluated object.

Public methodGetObjectStoreIdentity
Returns the ID or name of the object store in which the referenced object resides.

The returned string is an ID (in GUID format) or, if fetchless instantiation was used to create the object, the string contains the object store name. For non-object store references, this method returns Null.

Public methodIsResolved
Returns True when this identity is an ID (GUID), as it would be if resolved by the server.

Some factory methods instantiate an object using a name or a path and do not make a round-trip to the server (referred to as "fetchless instantiation"). If an object reference exists as a result of a call to one of these factory methods, this method returns False, indicating that there is no ID known to the API (that is, the reference is not "resolved"). If the object was instantiated with a method that persists the object to the object store immediately, or the object has been explicitly saved, this method returns True.

Public methodToString
Returns a String representation of the object represented by this identity.

ToggleSee Also