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.4.1
Syntax public Guid AsGuid { get; }
Public ReadOnly Property AsGuid As Guid
Get
member AsGuid : Guid with get
Property Value
Type:
GuidSee Also