IBsonIdProviderGetDocumentId Method |
Gets the document Id.
Namespace:
MongoDB.Bson.Serialization
Assembly:
MongoDB.Bson (in MongoDB.Bson.dll) Version: 2.6.0+Branch.origin/v2.6.x.Sha.593796a7b35dc59243383bcc684de296a5468f2e
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