dotConnect for MongoDB Documentation
Devart.Data.MongoDB Namespace / MongoDBField Class / AsOid Property

On this page
    AsOid Property
    On this page
    Gets or sets the value of the field as the 24-character hexadecimal text of an ObjectId. Returns a null reference (Nothing in Visual Basic) for a missing field; throws System.InvalidOperationException for the other types. The value is written as an ObjectId in lower case.
    Syntax
    'Declaration
     
    Public Property AsOid As String
    public string AsOid {get; set;}
    See Also