共用方式為


SubscriberSecurityMode 屬性

Gets or sets the security mode that is used when connecting to the Publisher.

命名空間:  Microsoft.SqlServer.Replication
組件:  Microsoft.SqlServer.Replication (在 Microsoft.SqlServer.Replication.dll 中)

語法

'宣告
Public Overridable Property SubscriberSecurityMode As SecurityMode
    Get
    Set
'用途
Dim instance As TransSynchronizationAgent
Dim value As SecurityMode

value = instance.SubscriberSecurityMode

instance.SubscriberSecurityMode = value
public virtual SecurityMode SubscriberSecurityMode { get; set; }
public:
virtual property SecurityMode SubscriberSecurityMode {
    SecurityMode get ();
    void set (SecurityMode value);
}
abstract SubscriberSecurityMode : SecurityMode with get, set
override SubscriberSecurityMode : SecurityMode with get, set
function get SubscriberSecurityMode () : SecurityMode
function set SubscriberSecurityMode (value : SecurityMode)

屬性值

型別:Microsoft.SqlServer.Replication. . :: . .SecurityMode
A SecurityMode value that represents the security mode.

實作

ITransSynchronizationAgent. . :: . .SubscriberSecurityMode

備註

盡可能使用 Windows 驗證。

For a pull subscription, the Distribution Agent always connects to the Subscriber locally by using Windows Integrated Authentication, and this property is ignored.

If the value is Standard, the SubscriberLogin and SubscriberPassword properties must also be specified.