[This is preliminary documentation and is subject to change.]
Converts CLR value to BSON. The following values are supported:
primitives+scaled decimal, enums, TypedRows, GDID, Guid, Amount, IDictionary, IEnumerable (including arrays).
If conversion could not be made then exception is thrown
Namespace: NFX.Serialization.BSONAssembly: NFX (in NFX.dll) Version: 3.0.0.1 (3.0.0.1)
public BSONElement ConvertCLRtoBSON(
string fieldName,
Object data,
string targetName
)
public BSONElement ConvertCLRtoBSON(
string fieldName,
Object data,
string targetName
)
Public Function ConvertCLRtoBSON (
fieldName As String,
data As Object,
targetName As String
) As BSONElement
Public Function ConvertCLRtoBSON (
fieldName As String,
data As Object,
targetName As String
) As BSONElement
public:
BSONElement^ ConvertCLRtoBSON(
String^ fieldName,
Object^ data,
String^ targetName
)
public:
BSONElement^ ConvertCLRtoBSON(
String^ fieldName,
Object^ data,
String^ targetName
)
member ConvertCLRtoBSON :
fieldName : string *
data : Object *
targetName : string -> BSONElement
member ConvertCLRtoBSON :
fieldName : string *
data : Object *
targetName : string -> BSONElement
Return Value
Type:
BSONElement