BsonValueAsObjectId Property |
Casts the BsonValue to an ObjectId (throws an InvalidCastException if the cast is not valid).
Namespace: MongoDB.BsonAssembly: MongoDB.Bson (in MongoDB.Bson.dll) Version: 2.0.1
Syntaxpublic ObjectId AsObjectId { get; }
Public ReadOnly Property AsObjectId As ObjectId
Get
member AsObjectId : ObjectId with get
Property Value
Type:
ObjectId
See Also