Export (0) Print
Expand All

PropertyCollection Class

The PropertyCollection class represents a collection of Property objects that represent all the properties defined on the parent object.

System.Object
  Microsoft.SqlServer.Management.Smo.PropertyCollection
    Microsoft.SqlServer.Management.Smo.SqlPropertyCollection

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

public class PropertyCollection : ICollection, 
	IEnumerable, ISfcPropertySet

The PropertyCollection type exposes the following members.

  NameDescription
Public propertyCountGets the number of properties in the PropertyCollection object.
Public propertyIsSynchronizedGets a Boolean value indicating whether access to the collection is synchronized and therefore thread-safe.
Public propertyItem[Int32]Gets an object in the collection by index number.
Public propertyItem[String]Gets an object in the collection by name.
Public propertySyncRootGets an object that can be used to synchronize access to the collection.
Top

  NameDescription
Public methodContainsDetermines whether the element specified by key exists in the collection.
Public methodCopyToCopies the collection objects to a one-dimensional array beginning at the index value specified.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetEnumeratorGets an enumerator that can iterate through the list of objects.
Public methodGetHashCode (Inherited from Object.)
Public methodGetPropertyObject(Int32)Gets the Property object.
Public methodGetPropertyObject(String)Gets the Property object.
Public methodGetPropertyObject(Int32, Boolean)Gets the Property object.
Public methodGetPropertyObject(String, Boolean).Gets the Property object.
Public methodGetType (Inherited from Object.)
Protected methodLookupIDReturns the ID of the Property object in the PropertyCollection object that has the specified name.
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Top

  NameDescription
Explicit interface implemetationPrivate methodICollection.CopyToCopies the collection.
Explicit interface implemetationPrivate methodISfcPropertySet.Contains(String)Determines whether the property collection contains the property specified by the propertyName parameter.
Explicit interface implemetationPrivate methodISfcPropertySet.Contains(ISfcProperty)Determines whether the property collection contains the property specified by the parameter.
Explicit interface implemetationPrivate methodISfcPropertySet.Contains<T>(String)Determines whether the property collection contains the property specified by the name parameter.
Explicit interface implemetationPrivate methodISfcPropertySet.EnumPropertiesGets the enumerator for the property collection.
Explicit interface implemetationPrivate methodISfcPropertySet.TryGetPropertyTries to get the property specified by the name parameter and type specified by the property parameter.
Explicit interface implemetationPrivate methodISfcPropertySet.TryGetPropertyValue(String, Object)Tries to get the property value specified by the name parameter and type specified by the property parameter.
Explicit interface implemetationPrivate methodISfcPropertySet.TryGetPropertyValue<T>(String, T)Tries to get the property value specified by the name parameter and type specified by the value parameter.
Top

A PropertyCollection object can be used to gain access to a set of properties. You can use the Item property to return a specific Property object.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft