MongoConnectionInformation Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Mongo Connection
[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MongoConnectionInformationTypeConverter))]
public class MongoConnectionInformation : Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoConnectionInformation
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MongoConnectionInformationTypeConverter))>]
type MongoConnectionInformation = class
interface IMongoConnectionInformation
interface IJsonSerializable
Public Class MongoConnectionInformation
Implements IMongoConnectionInformation
- Inheritance
-
MongoConnectionInformation
- Attributes
- Implements
Constructors
| Name | Description |
|---|---|
| MongoConnectionInformation() |
Creates an new MongoConnectionInformation instance. |
Properties
| Name | Description |
|---|---|
| ConnectionString |
ConnectionString to connect to Mongo. |
| Host |
Host of mongo connection. |
| Password |
Password to connect to Mongo. |
| Port |
Port of mongo connection. |
| UserName |
User name to connect to Mongo. |
| UseSsl |
Whether to UseSsl or UseTls to connect to Mongo. Default is true. |
Methods
| Name | Description |
|---|---|
| DeserializeFromDictionary(IDictionary) |
Deserializes a IDictionary into an instance of MongoConnectionInformation. |
| DeserializeFromPSObject(PSObject) |
Deserializes a PSObject into an instance of MongoConnectionInformation. |
| FromJson(JsonNode) |
Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoConnectionInformation. |
| FromJsonString(String) |
Creates a new instance of MongoConnectionInformation, deserializing the content from a json string. |
| ToJson(JsonObject, SerializationMode) |
Serializes this instance of MongoConnectionInformation into a JsonNode. |
| ToJsonString() |
Serializes this instance to a json string. |