BsonClassMapSerializerTClassGetDocumentId Method |
Gets the document Id.
Namespace:
MongoDB.Bson.Serialization
Assembly:
MongoDB.Bson (in MongoDB.Bson.dll) Version: 2.5.0+57.Branch.master.Sha.6a4e00a2d91090c65a9b11364b9ebfdb9c7da076
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