MergePullSubscription.SecureInternetPassword Property

Sets the password (as a SecureString object) used when connecting to the Web server using HTTP Basic Authentication.

命名空间: Microsoft.SqlServer.Replication
程序集: Microsoft.SqlServer.Rmo (in microsoft.sqlserver.rmo.dll)

语法

声明
Public Property SecureInternetPassword As SecureString
public SecureString SecureInternetPassword { get; set; }
public:
property SecureString^ SecureInternetPassword {
    SecureString^ get ();
    void set (SecureString^ value);
}
/** @property */
public SecureString get_SecureInternetPassword ()

/** @property */
public void set_SecureInternetPassword (SecureString value)
public function get SecureInternetPassword () : SecureString

public function set SecureInternetPassword (value : SecureString)

属性值

A SecureString value.

备注

The SecureInternetPassword property provides additional security for the password while it is stored in memory and should be used instead of InternetPassword.

When possible, prompt users to enter security credentials at runtime. If you must store credentials, use the cryptographic services provided by the Microsoft Windows .NET Framework.

The password is never returned by SecureInternetPassword.

You should use BasicAuthentication with Web synchronization. For more information, see 合并复制的 Web 同步.

The SecureInternetPassword property can only be set by members of the sysadmin fixed server role at the Subscriber or by members of the db_owner fixed database role on the subscription database.

Setting the SecureInternetPassword property is equivalent to executing sp_addmergepullsubscription_agent or sp_changemergepullsubscription.

The SecureInternetPassword property is availably only with instances of Microsoft SQL Server 2005.

This property is only used if the UseWebSynchronization property is true.

线程安全

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

平台

开发平台

有关支持的平台列表,请参阅安装 SQL Server 2005 的硬件和软件要求。

目标平台

有关支持的平台列表,请参阅安装 SQL Server 2005 的硬件和软件要求。

请参阅

参考

MergePullSubscription Class
MergePullSubscription Members
Microsoft.SqlServer.Replication Namespace

其他资源

How to: Configure Web Synchronization for Merge Replication (RMO Programming)