Casts the BsonValue to a Guid (throws an InvalidCastException if the cast is not valid).
Namespace: MongoDB.BsonAssembly: MongoDB.Bson (in MongoDB.Bson.dll) Version: 2.0.1
Syntax public Guid AsGuid { get; }
Public ReadOnly Property AsGuid As Guid
Get
member AsGuid : Guid with get
Property Value
Type:
GuidSee Also