Compartir a través de


Clase ConditionCollection

The ConditionCollection class represents a collection of Condition objects that represent all the conditions in the policy store.

Jerarquía de herencia

System.Object
  Microsoft.SqlServer.Management.Sdk.Sfc.SfcCollection<Condition, Condition.Key, PolicyStore>
    Microsoft.SqlServer.Management.Sdk.Sfc.SfcDictionaryCollection<Condition, Condition.Key, PolicyStore>
      Microsoft.SqlServer.Management.Dmf.ConditionCollection

Espacio de nombres:  Microsoft.SqlServer.Management.Dmf
Ensamblado:  Microsoft.SqlServer.Dmf (en Microsoft.SqlServer.Dmf.dll)

Sintaxis

'Declaración
<StrongNameIdentityPermissionAttribute(SecurityAction.LinkDemand, PublicKey := "0024000004800000940000000602000000240000525341310004000001000100272736ad6e5f9586bac2d531eabc3acc666c2f8ec879fa94f8f7b0327d2ff2ed523448f83c3d5c5dd2dfc7bc99c5286b2c125117bf5cbe242b9d41750732b2bdffe649c6efb8e5526d526fdd130095ecdb7bf210809c6cdad8824faa9ac0310ac3cba2aa0523567b2dfa7fe250b30facbd62d4ec99b94ac47c7d3b28f1f6e4c8")> _
Public NotInheritable Class ConditionCollection _
    Inherits SfcDictionaryCollection(Of Condition, Condition.Key, PolicyStore)
'Uso
Dim instance As ConditionCollection
[StrongNameIdentityPermissionAttribute(SecurityAction.LinkDemand, PublicKey = "0024000004800000940000000602000000240000525341310004000001000100272736ad6e5f9586bac2d531eabc3acc666c2f8ec879fa94f8f7b0327d2ff2ed523448f83c3d5c5dd2dfc7bc99c5286b2c125117bf5cbe242b9d41750732b2bdffe649c6efb8e5526d526fdd130095ecdb7bf210809c6cdad8824faa9ac0310ac3cba2aa0523567b2dfa7fe250b30facbd62d4ec99b94ac47c7d3b28f1f6e4c8")]
public sealed class ConditionCollection : SfcDictionaryCollection<Condition, Condition.Key, PolicyStore>
[StrongNameIdentityPermissionAttribute(SecurityAction::LinkDemand, PublicKey = L"0024000004800000940000000602000000240000525341310004000001000100272736ad6e5f9586bac2d531eabc3acc666c2f8ec879fa94f8f7b0327d2ff2ed523448f83c3d5c5dd2dfc7bc99c5286b2c125117bf5cbe242b9d41750732b2bdffe649c6efb8e5526d526fdd130095ecdb7bf210809c6cdad8824faa9ac0310ac3cba2aa0523567b2dfa7fe250b30facbd62d4ec99b94ac47c7d3b28f1f6e4c8")]
public ref class ConditionCollection sealed : public SfcDictionaryCollection<Condition^, Condition.Key^, PolicyStore^>
[<SealedAttribute>]
[<StrongNameIdentityPermissionAttribute(SecurityAction.LinkDemand, PublicKey = "0024000004800000940000000602000000240000525341310004000001000100272736ad6e5f9586bac2d531eabc3acc666c2f8ec879fa94f8f7b0327d2ff2ed523448f83c3d5c5dd2dfc7bc99c5286b2c125117bf5cbe242b9d41750732b2bdffe649c6efb8e5526d526fdd130095ecdb7bf210809c6cdad8824faa9ac0310ac3cba2aa0523567b2dfa7fe250b30facbd62d4ec99b94ac47c7d3b28f1f6e4c8")>]
type ConditionCollection =  
    class 
        inherit SfcDictionaryCollection<Condition, Condition.Key, PolicyStore>
    end
public final class ConditionCollection extends SfcDictionaryCollection<Condition, Condition.Key, PolicyStore>

El tipo ConditionCollection expone los siguientes miembros.

Constructores

  Nombre Descripción
Método público ConditionCollection Initializes a new instance of the ConditionCollection class.

Arriba

Propiedades

  Nombre Descripción
Propiedad pública Count No haga referencia directamente a este miembro en el código. Admite la infraestructura de SQL Server. (Se hereda de SfcDictionaryCollection<T, K, ParentT>.)
Propiedad protegida Initialized Gets a value indicating whether the collection has been initialized. No haga referencia directamente a este miembro en el código. Admite la infraestructura de SQL Server. (Se hereda de SfcCollection<T, K, ParentT>.)
Propiedad pública IsReadOnly No haga referencia directamente a este miembro en el código. Admite la infraestructura de SQL Server. (Se hereda de SfcDictionaryCollection<T, K, ParentT>.)
Propiedad pública IsSynchronized Gets or sets a value indicating whether access to the collection is synchronized (thread safe). No haga referencia directamente a este miembro en el código. Admite la infraestructura de SQL Server. (Se hereda de SfcCollection<T, K, ParentT>.)
Propiedad pública Item[String] Gets a Condition object in the collection by name.
Propiedad pública Item[K] Gets the item specified by the key. No haga referencia directamente a este miembro en el código. Admite la infraestructura de SQL Server. (Se hereda de SfcCollection<T, K, ParentT>.)
Propiedad protegida Parent Gets or sets the type of the parent object. No haga referencia directamente a este miembro en el código. Admite la infraestructura de SQL Server. (Se hereda de SfcCollection<T, K, ParentT>.)
Propiedad pública SyncRoot Gets or sets an object that can be used to synchronize access to the collection. No haga referencia directamente a este miembro en el código. Admite la infraestructura de SQL Server. (Se hereda de SfcCollection<T, K, ParentT>.)

Arriba

Métodos

  Nombre Descripción
Método público Add Adds the specified object to the collection. No haga referencia directamente a este miembro en el código. Admite la infraestructura de SQL Server. (Se hereda de SfcCollection<T, K, ParentT>.)
Método público Clear No haga referencia directamente a este miembro en el código. Admite la infraestructura de SQL Server. (Se hereda de SfcDictionaryCollection<T, K, ParentT>.)
Método público Contains(String) Verifies whether the specified string exists in the collection.
Método público Contains(T) No haga referencia directamente a este miembro en el código. Admite la infraestructura de SQL Server. (Se hereda de SfcDictionaryCollection<T, K, ParentT>.)
Método público CopyTo(Array, Int32) Copies the elements from the collection to the specified array, starting at the specified array index. No haga referencia directamente a este miembro en el código. Admite la infraestructura de SQL Server. (Se hereda de SfcCollection<T, K, ParentT>.)
Método público CopyTo(array<T[], Int32) No haga referencia directamente a este miembro en el código. Admite la infraestructura de SQL Server. (Se hereda de SfcDictionaryCollection<T, K, ParentT>.)
Método público Equals (Se hereda de Object.)
Método público GetEnumerator No haga referencia directamente a este miembro en el código. Admite la infraestructura de SQL Server. Gets an enumeration of the collection. (Se hereda de SfcDictionaryCollection<T, K, ParentT>.)
Método público GetHashCode (Se hereda de Object.)
Método público GetType (Se hereda de Object.)
Método público Refresh() Refreshes the collection by creating new and merging existing objects and properties in the collection. No haga referencia directamente a este miembro en el código. Admite la infraestructura de SQL Server. (Se hereda de SfcCollection<T, K, ParentT>.)
Método público Refresh(Boolean) Refreshes the collection by creating new and merging existing objects and properties in the collection. No haga referencia directamente a este miembro en el código. Admite la infraestructura de SQL Server. (Se hereda de SfcCollection<T, K, ParentT>.)
Método público Remove No haga referencia directamente a este miembro en el código. Admite la infraestructura de SQL Server. (Se hereda de SfcDictionaryCollection<T, K, ParentT>.)
Método protegido RemoveInternal Marks the specified object for removal. The state of the object is set to ToBeDropped. The object will be removed when the parent is altered or dropped. No haga referencia directamente a este miembro en el código. Admite la infraestructura de SQL Server. (Se hereda de SfcCollection<T, K, ParentT>.)
Método protegido Rename Renames the specified object. No haga referencia directamente a este miembro en el código. Admite la infraestructura de SQL Server. (Se hereda de SfcCollection<T, K, ParentT>.)
Método público ToString (Se hereda de Object.)
Método público TryGetValue Gets the value associated with the specified key. (Se hereda de SfcDictionaryCollection<T, K, ParentT>.)

Arriba

Implementaciones de interfaces explícitas

  Nombre Descripción
Implementación de interfaces explícitasPropiedad privada IListSource.ContainsListCollection Gets a value indicating whether the collection is a collection of IList objects. No haga referencia directamente a este miembro en el código. Admite la infraestructura de SQL Server. (Se hereda de SfcCollection<T, K, ParentT>.)
Implementación de interfaces explícitasMétodo privado IEnumerable.GetEnumerator Gets an enumerator that can iterate the collection. No haga referencia directamente a este miembro en el código. Admite la infraestructura de SQL Server. (Se hereda de SfcCollection<T, K, ParentT>.)
Implementación de interfaces explícitasMétodo privado IListSource.GetList Returns an IList object that can be bound to a data source from an object that does not implement the IList interface. No haga referencia directamente a este miembro en el código. Admite la infraestructura de SQL Server. (Se hereda de SfcCollection<T, K, ParentT>.)
Implementación de interfaces explícitasMétodo privado ISfcCollection.Add Adds the specified object to the collection. No haga referencia directamente a este miembro en el código. Admite la infraestructura de SQL Server. (Se hereda de SfcCollection<T, K, ParentT>.)
Implementación de interfaces explícitasMétodo privado ISfcCollection.AddShadow Adds the specified object to the shadow collection. No haga referencia directamente a este miembro en el código. Admite la infraestructura de SQL Server. (Se hereda de SfcCollection<T, K, ParentT>.)
Implementación de interfaces explícitasPropiedad privada ISfcCollection.Count Gets the number of items contained in the collection. No haga referencia directamente a este miembro en el código. Admite la infraestructura de SQL Server. (Se hereda de SfcCollection<T, K, ParentT>.)
Implementación de interfaces explícitasMétodo privado ISfcCollection.EnsureInitialized Initializes the collection from the server. No haga referencia directamente a este miembro en el código. Admite la infraestructura de SQL Server. (Se hereda de SfcCollection<T, K, ParentT>.)
Implementación de interfaces explícitasMétodo privado ISfcCollection.FinishMerge Swaps the new collection for the old collection. No haga referencia directamente a este miembro en el código. Admite la infraestructura de SQL Server. (Se hereda de SfcCollection<T, K, ParentT>.)
Implementación de interfaces explícitasMétodo privado ISfcCollection.GetCollectionElementNameImpl Gets the URN suffix for elements in the collection. No haga referencia directamente a este miembro en el código. Admite la infraestructura de SQL Server. (Se hereda de SfcCollection<T, K, ParentT>.)
Implementación de interfaces explícitasMétodo privado ISfcCollection.GetElementFactory Gets the factory that is used to instantiate objects for the collection. No haga referencia directamente a este miembro en el código. Admite la infraestructura de SQL Server. (Se hereda de SfcCollection<T, K, ParentT>.)
Implementación de interfaces explícitasMétodo privado ISfcCollection.GetExisting Uses the specified key to retrieve an existing item from the collection. No haga referencia directamente a este miembro en el código. Admite la infraestructura de SQL Server. (Se hereda de SfcCollection<T, K, ParentT>.)
Implementación de interfaces explícitasMétodo privado ISfcCollection.GetObjectByKey Uses the specified key to retrieve an object from the collection. If a matching object is not found, the object is created, and added to the collection (Se hereda de SfcCollection<T, K, ParentT>.)
Implementación de interfaces explícitasPropiedad privada ISfcCollection.Initialized Gets or sets a value indicating whether the collection has been initialized. No haga referencia directamente a este miembro en el código. Admite la infraestructura de SQL Server. (Se hereda de SfcCollection<T, K, ParentT>.)
Implementación de interfaces explícitasPropiedad privada ISfcCollection.Parent Gets the parent object. No haga referencia directamente a este miembro en el código. Admite la infraestructura de SQL Server. (Se hereda de SfcCollection<T, K, ParentT>.)
Implementación de interfaces explícitasMétodo privado ISfcCollection.PrepareMerge Prepares to merge fresh query results into the existing collection. No haga referencia directamente a este miembro en el código. Admite la infraestructura de SQL Server. (Se hereda de SfcCollection<T, K, ParentT>.)
Implementación de interfaces explícitasMétodo privado ISfcCollection.Remove Removes the specified object from the collection. No haga referencia directamente a este miembro en el código. Admite la infraestructura de SQL Server. (Se hereda de SfcCollection<T, K, ParentT>.)
Implementación de interfaces explícitasMétodo privado ISfcCollection.RemoveElement Removes the specified element from the collection. No haga referencia directamente a este miembro en el código. Admite la infraestructura de SQL Server. (Se hereda de SfcCollection<T, K, ParentT>.)
Implementación de interfaces explícitasMétodo privado ISfcCollection.Rename Renames the specified object. No haga referencia directamente a este miembro en el código. Admite la infraestructura de SQL Server. (Se hereda de SfcCollection<T, K, ParentT>.)

Arriba

Comentarios

A ConditionCollection object can be used to gain access to a set of conditions. You can use the Item property to return a specific Condition object.

Este espacio de nombres, clase o miembro solamente se admite en la versión 2.0 de Microsoft .NET Framework.

Ejemplos

Usar colecciones

Seguridad para subprocesos

Cualquier miembro público static (Shared en Visual Basic) de este tipo es seguro para subprocesos. No se garantiza que los miembros de instancia sean seguros para subprocesos.

Vea también

Referencia

Espacio de nombres Microsoft.SqlServer.Management.Dmf