BsonJavaScriptWithScope MethodsMongoDB C# Driver API Documentation

The BsonJavaScriptWithScope type exposes the following members.

Methods

  NameDescription
Public methodClone
Creates a shallow clone of the BsonJavaScriptWithScope (see also DeepClone).
(Overrides BsonValueClone.)
Public methodCompareTo(BsonJavaScript)
Compares this BsonJavaScript to another BsonJavaScript.
(Inherited from BsonJavaScript.)
Public methodCompareTo(BsonJavaScriptWithScope)
Compares this BsonJavaScriptWithScope to another BsonJavaScriptWithScope.
Public methodCompareTo(BsonValue)
Compares the BsonJavaScriptWithScope to another BsonValue.
(Overrides BsonJavaScriptCompareTo(BsonValue).)
Public methodCompareTypeTo
Compares the type of this BsonValue to the type of another BsonValue.
(Inherited from BsonValue.)
Public methodStatic memberCreate(Object)
Creates a new BsonJavaScriptWithScope.
Public methodStatic memberCreate(String, BsonDocument) Obsolete.
Creates a new instance of the BsonJavaScript class.
Public methodDeepClone
Creates a deep clone of the BsonJavaScriptWithScope (see also Clone).
(Overrides BsonValueDeepClone.)
Public methodEquals(Object)
Compares this BsonJavaScriptWithScope to another object.
(Overrides BsonJavaScriptEquals(Object).)
Public methodEquals(BsonJavaScript)
Compares this BsonJavaScript to another BsonJavaScript.
(Inherited from BsonJavaScript.)
Public methodEquals(BsonJavaScriptWithScope)
Compares this BsonJavaScriptWithScope to another BsonJavaScriptWithScope.
Public methodEquals(BsonValue)
Compares this BsonValue to another BsonValue.
(Inherited from BsonValue.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Gets the hash code.
(Overrides BsonJavaScriptGetHashCode.)
Public methodGetType
Gets the type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOperatorEqualsImplementation
Implementation of operator ==.
(Inherited from BsonValue.)
Public methodToBoolean
Converts this BsonValue to a Boolean (using the JavaScript definition of truthiness).
(Inherited from BsonValue.)
Public methodToDouble
Converts this BsonValue to a Double.
(Inherited from BsonValue.)
Public methodToInt32
Converts this BsonValue to an Int32.
(Inherited from BsonValue.)
Public methodToInt64
Converts this BsonValue to an Int64.
(Inherited from BsonValue.)
Public methodToLocalTime
Converts this BsonValue to a DateTime in local time.
(Inherited from BsonValue.)
Public methodToNullableLocalTime
Converts this BsonValue to a DateTime? in local time.
(Inherited from BsonValue.)
Public methodToNullableUniversalTime
Converts this BsonValue to a DateTime? in UTC.
(Inherited from BsonValue.)
Public methodToString
Returns a string representation of the value.
(Overrides BsonJavaScriptToString.)
Public methodToUniversalTime
Converts this BsonValue to a DateTime in UTC.
(Inherited from BsonValue.)
Public methodWriteTo Obsolete.
Writes the BsonValue to a BsonWriter.
(Inherited from BsonValue.)
Top
Extension Methods

  NameDescription
Public Extension MethodToBson(Type)Overloaded.
Converts an object to a BSON document byte array.
(Defined by BsonExtensionMethods.)
Public Extension MethodToBson(Type, IBsonSerializationOptions)Overloaded.
Converts an object to a BSON document byte array.
(Defined by BsonExtensionMethods.)
Public Extension MethodToBson(Type, BsonBinaryWriterSettings)Overloaded.
Converts an object to a BSON document byte array.
(Defined by BsonExtensionMethods.)
Public Extension MethodToBson(Type, IBsonSerializationOptions, BsonBinaryWriterSettings)Overloaded.
Converts an object to a BSON document byte array.
(Defined by BsonExtensionMethods.)
Public Extension MethodToBsonDocument(Type)Overloaded.
Converts an object to a BsonDocument.
(Defined by BsonExtensionMethods.)
Public Extension MethodToBsonDocument(Type, IBsonSerializationOptions)Overloaded.
Converts an object to a BsonDocument.
(Defined by BsonExtensionMethods.)
Public Extension MethodToJson(Type)Overloaded.
Converts an object to a JSON string.
(Defined by BsonExtensionMethods.)
Public Extension MethodToJson(Type, IBsonSerializationOptions)Overloaded.
Converts an object to a JSON string.
(Defined by BsonExtensionMethods.)
Public Extension MethodToJson(Type, JsonWriterSettings)Overloaded.
Converts an object to a JSON string.
(Defined by BsonExtensionMethods.)
Public Extension MethodToJson(Type, IBsonSerializationOptions, JsonWriterSettings)Overloaded.
Converts an object to a JSON string.
(Defined by BsonExtensionMethods.)
Top
See Also

Reference