Table of Contents

Property AsObjectId

Namespace
MongoDB.Bson
Assembly
MongoDB.Bson.dll

AsObjectId

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

public ObjectId AsObjectId { get; }

Property Value

ObjectId