Table of Contents

Property AsNullableObjectId

Namespace
MongoDB.Bson
Assembly
MongoDB.Bson.dll

AsNullableObjectId

Casts the BsonValue to a Nullable{ObjectId} (throws an InvalidCastException if the cast is not valid).

public ObjectId? AsNullableObjectId { get; }

Property Value

ObjectId?