Share via


SymmetricKeyCollection 類別

The SymmetricKeyCollection class represents a collection of SymmetricKey objects that represent all the symmetric keys on the referenced database.

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
Public NotInheritable Class SymmetricKeyCollection _
    Inherits SimpleObjectCollectionBase
'用途
Dim instance As SymmetricKeyCollection
public sealed class SymmetricKeyCollection : SimpleObjectCollectionBase
public ref class SymmetricKeyCollection sealed : public SimpleObjectCollectionBase
[<SealedAttribute>]
type SymmetricKeyCollection =  
    class
        inherit SimpleObjectCollectionBase
    end
public final class SymmetricKeyCollection extends SimpleObjectCollectionBase

備註

An SymmetricKeyCollection object can be used to gain access to a set of symmetric keys. You can use the Item property to return a specific SymmetricKey object.

範例

使用集合

執行緒安全性

這個類型的任何公用static (在 Visual Basic 中為 Shared) 成員都是安全執行緒。不保證任何執行個體成員都可以是安全執行緒。