Condividi tramite


Classe MailProfileCollection

The MailProfileCollection class represents a collection of MailProfile objects that represent all the mail profiles defined on the SQL Server Database Mail subsystem.

Spazio dei nomi:  Microsoft.SqlServer.Management.Smo.Mail
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Sintassi

'Dichiarazione
Public NotInheritable Class MailProfileCollection _
    Inherits SimpleObjectCollectionBase
'Utilizzo
Dim instance As MailProfileCollection
public sealed class MailProfileCollection : SimpleObjectCollectionBase
public ref class MailProfileCollection sealed : public SimpleObjectCollectionBase
[<SealedAttribute>]
type MailProfileCollection =  
    class
        inherit SimpleObjectCollectionBase
    end
public final class MailProfileCollection extends SimpleObjectCollectionBase

Osservazioni

A MailProfileCollection object can be used to gain access to a set of mail profiles. You can use the Item property to return a specific MailProfile object.

Thread Safety

Tutti i membri statici pubblici (Shared in Microsoft Visual Basic) di questo tipo sono sicuri per le operazioni a thread multipli. Non è invece garantita la sicurezza dei membri dell'istanza.

Thread Safety

Tutti i membri pubblici static (Shared in Visual Basic) di questo tipo sono thread safe. I membri di istanza non hanno garanzia di essere thread safe.