DistributorPassword 属性

指定连接到分发服务器时使用的登录密码。

命名空间:  System.Data.SqlServerCe
程序集:  System.Data.SqlServerCe(在 System.Data.SqlServerCe.dll 中)

语法

声明
Public Property DistributorPassword As String
    Get
    Set
用法
Dim instance As SqlCeReplication
Dim value As String

value = instance.DistributorPassword

instance.DistributorPassword = value
public string DistributorPassword { get; set; }
public:
property String^ DistributorPassword {
    String^ get ();
    void set (String^ value);
}
member DistributorPassword : string with get, set
function get DistributorPassword () : String
function set DistributorPassword (value : String)

属性值

类型:System. . :: . .String
连接到分发服务器时使用的密码。

注释

只有在 DistributorSecurityMode 设置为 DBAuthentication 时才会使用 DistributorPassword。

如果没有指定任何分发服务器连接属性,则会认为发布服务器和分发服务器位于 SQL Server 的同一实例上,并且在连接到分发服务器时使用该发布服务器的连接属性。但是,如果设置了任一分发服务器连接属性,则必须设置所有必需的分发服务器属性。

请参阅

参考

SqlCeReplication类

SqlCeReplication 成员

System.Data.SqlServerCe 命名空间