Table of Contents

Property AsString

Namespace
MongoDB.Bson
Assembly
MongoDB.Bson.dll

AsString

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

public string AsString { get; }

Property Value

string