共用方式為


SMTPConn.EnableSsl 屬性

Gets or sets a Boolean indicating whether to encrypt communication using Secure Sockets Layer (SSL) when sending e-mail messages.

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

語法

'宣告
Public Property EnableSsl As Boolean 
    Get 
    Set
'用途
Dim instance As SMTPConn 
Dim value As Boolean 

value = instance.EnableSsl

instance.EnableSsl = value
public bool EnableSsl { get; set; }
public:
property bool EnableSsl {
    bool get ();
    void set (bool value);
}
member EnableSsl : bool with get, set
function get EnableSsl () : boolean 
function set EnableSsl (value : boolean)

屬性值

型別:System.Boolean
true indicates that communication is encrypted, using Secure Sockets Layer (SSL) when sending e-mail messages. false indicates that encryption is not used.

請參閱

參考

SMTPConn 類別

Microsoft.SqlServer.Dts.ManagedConnections 命名空間