Partager 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.

Espace de noms :  Microsoft.SqlServer.Management.Smo
Assembly :  Microsoft.SqlServer.Smo (dans Microsoft.SqlServer.Smo.dll)

Syntaxe

'Déclaration
Public NotInheritable Class CredentialCollection _
    Inherits SimpleObjectCollectionBase
'Utilisation
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

Notes

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

Tout membre statique public (Partagé dans Microsoft Visual Basic) de ce type est sûr dans le cadre des opérations à plusieurs threads. Tous les membres de l'instance ne sont pas garantis comme sûrs.

Sécurité des threads

Tous les membres publics static (Shared dans Visual Basic) de ce type sont thread-safe. Il n'est pas garanti que les membres d'instance soient thread-safe.