共用方式為


PublisherConnectionSecurityContext.SecurityMode 屬性

Get or sets the type of login used when connecting to the Publisher.

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

語法

'宣告
Public Property SecurityMode As ReplicationSecurityMode 
    Get 
    Set
'用途
Dim instance As PublisherConnectionSecurityContext 
Dim value As ReplicationSecurityMode 

value = instance.SecurityMode

instance.SecurityMode = value
public ReplicationSecurityMode SecurityMode { get; set; }
public:
property ReplicationSecurityMode SecurityMode {
    ReplicationSecurityMode get ();
    void set (ReplicationSecurityMode value);
}
member SecurityMode : ReplicationSecurityMode with get, set
function get SecurityMode () : ReplicationSecurityMode 
function set SecurityMode (value : ReplicationSecurityMode)

屬性值

型別:Microsoft.SqlServer.Replication.ReplicationSecurityMode
A ReplicationSecurityMode value.

備註

盡可能使用 Windows 驗證。 

This namespace, class, or member is supported only in version 2.0 of the .NET Framework.

請參閱

參考

PublisherConnectionSecurityContext 類別

Microsoft.SqlServer.Replication 命名空間