共用方式為


SPIncomingEmailService.UseAutomaticSettings Property

Gets or sets a Boolean value that specifies whether incoming e-mail settings are automatically gathered from the default Internet Information Services (IIS) Simple Mail Transfer Protocol (SMTP) instance.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public Property UseAutomaticSettings As Boolean
    Get
    Set
'Usage
Dim instance As SPIncomingEmailService
Dim value As Boolean

value = instance.UseAutomaticSettings

instance.UseAutomaticSettings = value
public bool UseAutomaticSettings { get; set; }

Property Value

Type: System.Boolean
true to automatically gather incoming e-mail settings from the default IIS SMTP instance; otherwise, false.

See Also

Reference

SPIncomingEmailService Class

SPIncomingEmailService Members

Microsoft.SharePoint.Administration Namespace