ObjectIDGenerator.GetId(Object, Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 * bool -> int64
override this.GetId : obj * bool -> int64
Public Overridable Function GetId (obj As Object, ByRef firstTime As Boolean) As Long
Parameters
- obj
- Object
The object you want an ID for.
- firstTime
- 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
The obj
parameter is null
.
The ObjectIDGenerator has been asked to keep track of too many objects.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om