Partager via


ConfigurationElementCollection<T> Class

 

Applies To: Dynamics CRM 2015

Contains a collection of configuration elements. (Developer Extensions)

Namespace:   Microsoft.Xrm.Client.Configuration
Assembly:  Microsoft.Xrm.Client (in Microsoft.Xrm.Client.dll)

Inheritance Hierarchy

System.Object
  System.Configuration.ConfigurationElement
    System.Configuration.ConfigurationElementCollection
      Microsoft.Xrm.Client.Configuration.ConfigurationElementCollection<T>
        Microsoft.Xrm.Client.Configuration.CrmConnectionStringSettingsCollection
        Microsoft.Xrm.Client.Configuration.ObjectCacheElementCollection
        Microsoft.Xrm.Client.Configuration.OrganizationServiceCacheElementCollection
        Microsoft.Xrm.Client.Configuration.OrganizationServiceContextElementCollection
        Microsoft.Xrm.Client.Configuration.OrganizationServiceElementCollection

Syntax

public abstract class ConfigurationElementCollection<T> : ConfigurationElementCollection
where T : new(), ConfigurationElement
generic<typename T>
where T : gcnew(), ConfigurationElement
public ref class ConfigurationElementCollection abstract : ConfigurationElementCollection
[<AbstractClass>]
type ConfigurationElementCollection<'T when 'T : new() and ConfigurationElement> = 
    class
        inherit ConfigurationElementCollection
    end
Public MustInherit Class ConfigurationElementCollection(Of T As { ConfigurationElement, New })
    Inherits ConfigurationElementCollection

Type Parameters

  • T
    The type of elements in the collection.

Constructors

Name Description
System_CAPS_protmethod ConfigurationElementCollection<T>()

Initializes a new instance of the ConfigurationElementCollection<T> class.

Properties

Name Description
System_CAPS_protproperty AddElementName

(Inherited from ConfigurationElementCollection.)

System_CAPS_pubproperty AllKeys

Gets all the keys in the ConfigurationElementCollection<T>

System_CAPS_protproperty ClearElementName

(Inherited from ConfigurationElementCollection.)

System_CAPS_pubproperty CollectionName

Gets or sets the name of the element collection.

System_CAPS_pubproperty CollectionType

(Inherited from ConfigurationElementCollection.)

System_CAPS_pubproperty Count

(Inherited from ConfigurationElementCollection.)

System_CAPS_pubproperty Current

Gets the selected or default element.

System_CAPS_pubproperty CurrentConfiguration

(Inherited from ConfigurationElement.)

System_CAPS_pubproperty Default

Gets or sets the default element name.

System_CAPS_pubproperty ElementInformation

(Inherited from ConfigurationElement.)

System_CAPS_protproperty ElementName

Gets the element name.(Overrides ConfigurationElementCollection.ElementName.)

System_CAPS_protproperty ElementProperty

(Inherited from ConfigurationElement.)

System_CAPS_pubproperty EmitClear

(Inherited from ConfigurationElementCollection.)

System_CAPS_protproperty EvaluationContext

(Inherited from ConfigurationElement.)

System_CAPS_protproperty HasContext

(Inherited from ConfigurationElement.)

System_CAPS_pubproperty IsSynchronized

(Inherited from ConfigurationElementCollection.)

System_CAPS_protproperty Item[ConfigurationProperty]

(Inherited from ConfigurationElement.)

System_CAPS_pubproperty Item[Int32]

Gets or sets the element with the specified key.

System_CAPS_pubproperty Item[String]

Gets or sets the element with the specified key.

System_CAPS_pubproperty LockAllAttributesExcept

(Inherited from ConfigurationElement.)

System_CAPS_pubproperty LockAllElementsExcept

(Inherited from ConfigurationElement.)

System_CAPS_pubproperty LockAttributes

(Inherited from ConfigurationElement.)

System_CAPS_pubproperty LockElements

(Inherited from ConfigurationElement.)

System_CAPS_pubproperty LockItem

(Inherited from ConfigurationElement.)

System_CAPS_protproperty Properties

Gets the property collection.(Overrides ConfigurationElement.Properties.)

System_CAPS_protproperty RemoveElementName

(Inherited from ConfigurationElementCollection.)

System_CAPS_pubproperty SyncRoot

(Inherited from ConfigurationElementCollection.)

System_CAPS_protproperty ThrowOnDuplicate

(Inherited from ConfigurationElementCollection.)

Methods

Name Description
System_CAPS_pubmethod Add(T)

System_CAPS_protmethod BaseAdd(ConfigurationElement)

(Inherited from ConfigurationElementCollection.)

System_CAPS_protmethod BaseAdd(ConfigurationElement, Boolean)

(Inherited from ConfigurationElementCollection.)

System_CAPS_protmethod BaseAdd(Int32, ConfigurationElement)

(Inherited from ConfigurationElementCollection.)

System_CAPS_protmethod BaseClear()

(Inherited from ConfigurationElementCollection.)

System_CAPS_protmethod BaseGet(Int32)

(Inherited from ConfigurationElementCollection.)

System_CAPS_protmethod BaseGet(Object)

(Inherited from ConfigurationElementCollection.)

System_CAPS_protmethod BaseGetAllKeys()

(Inherited from ConfigurationElementCollection.)

System_CAPS_protmethod BaseGetKey(Int32)

(Inherited from ConfigurationElementCollection.)

System_CAPS_protmethod BaseIndexOf(ConfigurationElement)

(Inherited from ConfigurationElementCollection.)

System_CAPS_protmethod BaseIsRemoved(Object)

(Inherited from ConfigurationElementCollection.)

System_CAPS_protmethod BaseRemove(Object)

(Inherited from ConfigurationElementCollection.)

System_CAPS_protmethod BaseRemoveAt(Int32)

(Inherited from ConfigurationElementCollection.)

System_CAPS_pubmethod CopyTo(ConfigurationElement[], Int32)

(Inherited from ConfigurationElementCollection.)

System_CAPS_protmethod CreateNewElement()

Creates a new ConfigurationElement.(Overrides ConfigurationElementCollection.CreateNewElement().)

System_CAPS_protmethod CreateNewElement(String)

(Inherited from ConfigurationElementCollection.)

System_CAPS_protmethod DeserializeElement(XmlReader, Boolean)

(Inherited from ConfigurationElement.)

System_CAPS_pubmethod Equals(Object)

(Inherited from ConfigurationElementCollection.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_protmethod GetElementKey(ConfigurationElement)

(Overrides ConfigurationElementCollection.GetElementKey(ConfigurationElement).)

System_CAPS_pubmethod GetElementOrDefault(String, Boolean)

Retrieves the selected element or falls back to the default.

System_CAPS_pubmethod GetEnumerator()

(Inherited from ConfigurationElementCollection.)

System_CAPS_pubmethod GetHashCode()

(Inherited from ConfigurationElementCollection.)

System_CAPS_pubmethod GetKey(Int32)

Gets the key at the specified index position.

System_CAPS_protmethod GetTransformedAssemblyString(String)

(Inherited from ConfigurationElement.)

System_CAPS_protmethod GetTransformedTypeString(String)

(Inherited from ConfigurationElement.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod Init()

(Inherited from ConfigurationElement.)

System_CAPS_protmethod InitializeDefault()

(Inherited from ConfigurationElement.)

System_CAPS_protmethod IsElementName(String)

(Inherited from ConfigurationElementCollection.)

System_CAPS_protmethod IsElementRemovable(ConfigurationElement)

(Inherited from ConfigurationElementCollection.)

System_CAPS_protmethod IsModified()

(Inherited from ConfigurationElementCollection.)

System_CAPS_pubmethod IsReadOnly()

True if the collection is read only.(Overrides ConfigurationElementCollection.IsReadOnly().)

System_CAPS_protmethod ListErrors(IList)

(Inherited from ConfigurationElement.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_protmethod OnDeserializeUnrecognizedAttribute(String, String)

(Inherited from ConfigurationElement.)

System_CAPS_protmethod OnDeserializeUnrecognizedElement(String, XmlReader)

(Inherited from ConfigurationElementCollection.)

System_CAPS_protmethod OnRequiredPropertyNotFound(String)

(Inherited from ConfigurationElement.)

System_CAPS_protmethod PostDeserialize()

(Inherited from ConfigurationElement.)

System_CAPS_protmethod PreSerialize(XmlWriter)

(Inherited from ConfigurationElement.)

System_CAPS_pubmethod Remove(T)

Removes an element from the collection.

System_CAPS_pubmethod Remove(String)

Removes an element from the collection.

System_CAPS_pubmethod RemoveAt(Int32)

Removes the element at the specified position from the collection.

System_CAPS_protmethod Reset(ConfigurationElement)

(Inherited from ConfigurationElementCollection.)

System_CAPS_protmethod ResetModified()

(Inherited from ConfigurationElementCollection.)

System_CAPS_protmethod SerializeElement(XmlWriter, Boolean)

(Inherited from ConfigurationElementCollection.)

System_CAPS_protmethod SerializeToXmlElement(XmlWriter, String)

(Inherited from ConfigurationElement.)

System_CAPS_protmethod SetPropertyValue(ConfigurationProperty, Object, Boolean)

(Inherited from ConfigurationElement.)

System_CAPS_protmethod SetReadOnly()

(Inherited from ConfigurationElementCollection.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

System_CAPS_protmethod Unmerge(ConfigurationElement, ConfigurationElement, ConfigurationSaveMode)

(Inherited from ConfigurationElementCollection.)

Explicit Interface Implementations

Name Description
System_CAPS_pubinterfaceSystem_CAPS_privmethod ICollection.CopyTo(Array, Int32)

(Inherited from ConfigurationElementCollection.)

Extension Methods

Name Description
System_CAPS_pubmethod SerializeByJson(IEnumerable<Type>)

Serialize an object using the DataContractJsonSerializer.(Defined by ObjectExtensions.)

Thread Safety

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Microsoft.Xrm.Client.Configuration Namespace
Developer extensions for Microsoft Dynamics CRM 2015

Return to top

© 2017 Microsoft. All rights reserved. Copyright