1 out of 1 rated this helpful - Rate this topic

MailSettingsSectionGroup Class

Initializes a new instance of the MailSettingsSectionGroup class.

System.Object
  System.Configuration.ConfigurationSectionGroup
    System.Net.Configuration.MailSettingsSectionGroup

Namespace:  System.Net.Configuration
Assembly:  System (in System.dll)
public sealed class MailSettingsSectionGroup : ConfigurationSectionGroup

The MailSettingsSectionGroup type exposes the following members.

  Name Description
Public method MailSettingsSectionGroup Initializes a new instance of the MailSettingsSectionGroup class.
Top
  Name Description
Public property IsDeclarationRequired Gets a value that indicates whether this ConfigurationSectionGroup object declaration is required. (Inherited from ConfigurationSectionGroup.)
Public property IsDeclared Gets a value that indicates whether this ConfigurationSectionGroup object is declared. (Inherited from ConfigurationSectionGroup.)
Public property Name Gets the name property of this ConfigurationSectionGroup object. (Inherited from ConfigurationSectionGroup.)
Public property SectionGroupName Gets the section group name associated with this ConfigurationSectionGroup. (Inherited from ConfigurationSectionGroup.)
Public property SectionGroups Gets a ConfigurationSectionGroupCollection object that contains all the ConfigurationSectionGroup objects that are children of this ConfigurationSectionGroup object. (Inherited from ConfigurationSectionGroup.)
Public property Sections Gets a ConfigurationSectionCollection object that contains all of ConfigurationSection objects within this ConfigurationSectionGroup object. (Inherited from ConfigurationSectionGroup.)
Public property Smtp Gets the SMTP settings for the local computer.
Public property Type Gets or sets the type for this ConfigurationSectionGroup object. (Inherited from ConfigurationSectionGroup.)
Top
  Name Description
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method ForceDeclaration() Forces the declaration for this ConfigurationSectionGroup object. (Inherited from ConfigurationSectionGroup.)
Public method ForceDeclaration(Boolean) Forces the declaration for this ConfigurationSectionGroup object. (Inherited from ConfigurationSectionGroup.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Protected method ShouldSerializeSectionGroupInTargetVersion Indicates whether the current ConfigurationSectionGroup instance should be serialized when the configuration object hierarchy is serialized for the specified target version of the .NET Framework. (Inherited from ConfigurationSectionGroup.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top

This class corresponds to the <mailSettings> Element (Network Settings) configuration element.

This class is used to access information about SMTP settings for the local computer.

This class provides programmatic access to information that can be stored in configuration files.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ