Struct BSONCodeWithScope
Represents a BSON javascript with the scope type
Implements
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: NFX.Serialization.BSON
Assembly: NFX.dll
Syntax
public struct BSONCodeWithScope : IJSONWritable
Constructors
BSONCodeWithScope(String, BSONDocument)
Declaration
public BSONCodeWithScope(string code, BSONDocument scope)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | code | |
| BSONDocument | scope |
Fields
Code
Declaration
public readonly string Code
Field Value
| Type | Description |
|---|---|
| System.String |
Scope
Declaration
public readonly BSONDocument Scope
Field Value
| Type | Description |
|---|---|
| BSONDocument |
Methods
WriteAsJSON(TextWriter, Int32, JSONWritingOptions)
Declaration
public void WriteAsJSON(TextWriter wri, int nestingLevel, JSONWritingOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.IO.TextWriter | wri | |
| System.Int32 | nestingLevel | |
| JSONWritingOptions | options |