你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

MongoDBLinkedService 类

定义

MongoDb 数据源的链接服务。

public class MongoDBLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties
type MongoDBLinkedService = class
    inherit DataFactoryLinkedServiceProperties
Public Class MongoDBLinkedService
Inherits DataFactoryLinkedServiceProperties
继承

构造函数

MongoDBLinkedService(DataFactoryElement<String>, DataFactoryElement<String>)

初始化 MongoDBLinkedService 的新实例。

属性

AdditionalProperties

附加属性

若要将 对象分配给此属性的值,请使用 FromObjectAsJson<T>(T, JsonSerializerOptions)

若要将已格式化的 json 字符串分配给此属性,请使用 FromString(String)

示例:

  • BinaryData.FromObjectAsJson (“foo”) 创建“foo”的有效负载。
  • BinaryData.FromString (“\”foo\“”) 创建“foo”的有效负载。
  • BinaryData.FromObjectAsJson (new { key = “value” }) 创建 { “key”: “value” } 的有效负载。
  • BinaryData.FromString (“{\”key\“: \”value\“}”) 创建有效负载 { “key”: “value” }。

(继承自 DataFactoryLinkedServiceProperties)
AllowSelfSignedServerCert

指定是否允许来自服务器的自签名证书。 默认值为 false。 类型:boolean (或 expression with resultType boolean) 。

Annotations

可用于描述链接服务的标记列表。

若要将 对象分配给此属性的 元素,请使用 FromObjectAsJson<T>(T, JsonSerializerOptions)

若要将已格式化的 json 字符串分配给此属性,请使用 FromString(String)

示例:

  • BinaryData.FromObjectAsJson (“foo”) 创建“foo”的有效负载。
  • BinaryData.FromString (“\”foo\“”) 创建“foo”的有效负载。
  • BinaryData.FromObjectAsJson (new { key = “value” }) 创建 { “key”: “value” } 的有效负载。
  • BinaryData.FromString (“{\”key\“: \”value\“}”) 创建有效负载 { “key”: “value” }。

(继承自 DataFactoryLinkedServiceProperties)
AuthenticationType

用于连接到 MongoDB 数据库的身份验证类型。

AuthSource

用于验证用户名和密码的数据库。 类型:包含 resultType 字符串) 的字符串 (或表达式。

ConnectVia

集成运行时引用。

(继承自 DataFactoryLinkedServiceProperties)
DatabaseName

要访问的 MongoDB 数据库的名称。 类型:包含 resultType 字符串) 的字符串 (或表达式。

Description

链接服务说明。

(继承自 DataFactoryLinkedServiceProperties)
EnableSsl

指定是否使用 SSL 加密到服务器的连接。 默认值为 false。 类型:boolean (或 expression with resultType boolean) 。

EncryptedCredential

用于身份验证的加密凭据。 使用集成运行时凭据管理器加密凭据。 类型:字符串。

Parameters

链接服务的参数。

(继承自 DataFactoryLinkedServiceProperties)
Password

用于身份验证的密码。

Port

MongoDB 服务器用于侦听客户端连接的 TCP 端口号。 默认值为 27017。 类型:具有 resultType 整数) 的整数 (或 Expression,最小值:0。

Server

MongoDB 服务器的 IP 地址或服务器名称。 类型:包含 resultType 字符串) 的字符串 (或表达式。

Username

用于身份验证的用户名。 类型:包含 resultType 字符串) 的字符串 (或表达式。

适用于