ObjectIDGenerator.GetId(Object, Boolean) ObjectIDGenerator.GetId(Object, Boolean) ObjectIDGenerator.GetId(Object, Boolean) ObjectIDGenerator.GetId(Object, Boolean) Method

Definition

Returns the ID for the specified object, generating a new ID if the specified object has not already been identified by the ObjectIDGenerator.

public:
 virtual long GetId(System::Object ^ obj, [Runtime::InteropServices::Out] bool % firstTime);
public virtual long GetId (object obj, out bool firstTime);
abstract member GetId : obj *  -> int64
override this.GetId : obj *  -> int64
Public Overridable Function GetId (obj As Object, ByRef firstTime As Boolean) As Long

Parameters

obj
Object Object Object Object

The object you want an ID for.

firstTime
Boolean Boolean Boolean Boolean

true if obj was not previously known to the ObjectIDGenerator; otherwise, false.

Returns

The object's ID is used for serialization. firstTime is set to true if this is the first time the object has been identified; otherwise, it is set to false.

Exceptions

Applies to