Поделиться через


ParameterCollection Class

 

Applies To: Dynamics CRM 2015

Provides a collection of parameters for a request.

Namespace:   Microsoft.Xrm.Sdk
Assembly:  Microsoft.Xrm.Sdk (in Microsoft.Xrm.Sdk.dll)

Inheritance Hierarchy

System.Object
  Microsoft.Xrm.Sdk.DataCollection<TKey, TValue>
    Microsoft.Xrm.Sdk.ParameterCollection

Syntax

[CollectionDataContractAttribute(Name = "ParameterCollection", 
    Namespace = "https://schemas.microsoft.com/xrm/2011/Contracts")]
[KnownTypeAttribute("GetKnownParameterTypes")]
public sealed class ParameterCollection : DataCollection<string, object>
[CollectionDataContractAttribute(Name = "ParameterCollection", 
    Namespace = "https://schemas.microsoft.com/xrm/2011/Contracts")]
[KnownTypeAttribute("GetKnownParameterTypes")]
public ref class ParameterCollection sealed : DataCollection<String^, Object^>
[<Sealed>]
[<CollectionDataContractAttribute(Name = "ParameterCollection",
    Namespace = "https://schemas.microsoft.com/xrm/2011/Contracts")>]
[<KnownTypeAttribute("GetKnownParameterTypes")>]
type ParameterCollection = 
    class
        inherit DataCollection<string, Object>
    end
<CollectionDataContractAttribute(Name := "ParameterCollection",
    Namespace := "https://schemas.microsoft.com/xrm/2011/Contracts")>
<KnownTypeAttribute("GetKnownParameterTypes")>
Public NotInheritable Class ParameterCollection
    Inherits DataCollection(Of String, Object)

Constructors

Name Description
System_CAPS_pubmethod ParameterCollection()

Initializes a new instance of the ParameterCollection class.

Properties

Name Description
System_CAPS_pubproperty Count

Gets the number of elements in the collection.(Inherited from DataCollection<TKey, TValue>.)

System_CAPS_pubproperty IsReadOnly

Gets a value indicating whether the DataCollection<TKey, TValue> is read-only.(Inherited from DataCollection<TKey, TValue>.)

System_CAPS_pubproperty Item[TKey]

Gets or sets the value associated with the specified key.(Inherited from DataCollection<TKey, TValue>.)

System_CAPS_pubproperty Keys

Gets a collection containing the keys in the DataCollection<TKey, TValue>.(Inherited from DataCollection<TKey, TValue>.)

System_CAPS_pubproperty Values

Gets a collection containing the values in the DataCollection<TKey, TValue>.(Inherited from DataCollection<TKey, TValue>.)

Methods

Name Description
System_CAPS_pubmethod Add(TKey, TValue)

Adds the specified key and value to the dictionary.(Inherited from DataCollection<TKey, TValue>.)

System_CAPS_pubmethod Add(KeyValuePair<TKey, TValue>)

Adds the specified key and value to the dictionary.(Inherited from DataCollection<TKey, TValue>.)

System_CAPS_pubmethod AddRange(IEnumerable<KeyValuePair<TKey, TValue>>)

Adds the elements of the specified collection to the end of the DataCollection<TKey, TValue>.(Inherited from DataCollection<TKey, TValue>.)

System_CAPS_pubmethod AddRange(KeyValuePair<TKey, TValue>[])

Adds the elements of the specified collection to the end of the DataCollection<TKey, TValue>.(Inherited from DataCollection<TKey, TValue>.)

System_CAPS_pubmethod Clear()

Removes all items from the DataCollection<TKey, TValue>. (Inherited from DataCollection<TKey, TValue>.)

System_CAPS_pubmethod Contains(TKey)

Determines whether the DataCollection<TKey, TValue> contains a specific value.(Inherited from DataCollection<TKey, TValue>.)

System_CAPS_pubmethod Contains(TKey)

Determines whether the DataCollection<TKey, TValue> contains a specific value.(Inherited from DataCollection<TKey, TValue>.)

System_CAPS_pubmethod ContainsKey(TKey)

Determines whether the DataCollection<TKey, TValue> contains a specific key value.(Inherited from DataCollection<TKey, TValue>.)

System_CAPS_pubmethod CopyTo(KeyValuePair<TKey, TValue>[], Int32)

(Inherited from DataCollection<TKey, TValue>.)

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_pubmethod GetEnumerator()

Returns an enumerator that iterates through a collection.(Inherited from DataCollection<TKey, TValue>.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod Remove(TKey)

Removes the first occurrence of a specific object from the DataCollection<TKey, TValue>.(Inherited from DataCollection<TKey, TValue>.)

System_CAPS_pubmethod Remove(TKey)

Removes the first occurrence of a specific object from the DataCollection<TKey, TValue>.(Inherited from DataCollection<TKey, TValue>.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

System_CAPS_pubmethod TryGetValue(TKey, TValue)

Gets the value associated with the specified key.(Inherited from DataCollection<TKey, TValue>.)

Explicit Interface Implementations

Name Description
System_CAPS_pubinterfaceSystem_CAPS_privmethod IEnumerable.GetEnumerator()

Returns an enumerator that iterates through the collection.(Inherited from DataCollection<TKey, TValue>.)

Remarks

For each parameter in the collection there is a key/value pair. The key is the name of the request parameter as defined in the message.

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.Sdk Namespace
SdkMessage entity messages and methods

Return to top

© 2016 Microsoft. All rights reserved. Copyright