Share via


Classe CredentialCollection

The CredentialCollection class represents a collection of Credential objects that represent all the credentials defined on the instance of Microsoft SQL Server.

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

Sintassi

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

Osservazioni

A CredentialCollection object can be used to gain access to a set of credentials. You can use the Item property to return a specific Credential 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.