IBsonIdProviderGetDocumentId Method |
Gets the document Id.
Namespace:
MongoDB.Bson.Serialization
Assembly:
MongoDB.Bson (in MongoDB.Bson.dll) Version: 2.11.0+cb27a82ea70620ad1acad8058809be8302ae4f2a
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