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

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (em Microsoft.SqlServer.Smo.dll)

Sintaxe

'Declaração
Public NotInheritable Class CredentialCollection _
    Inherits SimpleObjectCollectionBase
'Uso
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

Comentários

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

Qualquer membro público estático (Compartilhado no Microsoft Visual Basic) desse tipo é seguro para operações multi-threaded. Não há garantia de que qualquer membro de instância seja seguro para threads.

Segurança de thread

Quaisquer membros static (Shared no Visual Basic) públicos deste tipo são thread-safe. Não há garantia de que qualquer membro de instância seja thread-safe.