BsonDocumentSerializerGetDocumentId Method |
Gets the document Id.
Namespace:
MongoDB.Bson.Serialization.Serializers
Assembly:
MongoDB.Bson (in MongoDB.Bson.dll) Version: 2.22.0+75246110ed1247226fcc7f8eb2c54ffab745693e
Syntax public bool GetDocumentId(
Object document,
out Object id,
out Type idNominalType,
out IIdGenerator idGenerator
)
Public 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
override 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.
Implements
IBsonIdProviderGetDocumentId(Object, Object, Type, IIdGenerator)See Also