IBsonIdProviderGetDocumentId Method |
Gets the document Id.
Namespace:
MongoDB.Bson.Serialization
Assembly:
MongoDB.Bson (in MongoDB.Bson.dll) Version: 2.20.0+ee01960089f28ea1b501690df5fc9f6318a70242
Syntax bool GetDocumentId(
Object document,
out Object id,
out Type idNominalType,
out IIdGenerator idGenerator
)
Function GetDocumentId (
document As Object,
<OutAttribute> ByRef id As Object,
<OutAttribute> ByRef idNominalType As Type,
<OutAttribute> ByRef idGenerator As IIdGenerator
) As Boolean
abstract GetDocumentId :
document : Object *
id : Object byref *
idNominalType : Type byref *
idGenerator : IIdGenerator byref -> bool
Parameters
- document
- Type: SystemObject
The document. - id
- Type: SystemObject
The Id. - idNominalType
- Type: SystemType
The nominal type of the Id. - idGenerator
- Type: MongoDB.Bson.SerializationIIdGenerator
The IdGenerator for the Id type.
Return Value
Type:
BooleanTrue if the document has an Id.
See Also