Compartir a través de


ResultObjectHelpers.SetDictionaryIntoProperty Method

Places a dictionary of result objects in an array within the specified property.

Namespace: Microsoft.ConfigurationManagement.AdminConsole
Assembly: Microsoft.ConfigurationManagement.ManagementProvider (in microsoft.configurationmanagement.managementprovider.dll)

Usage

'Usage
Dim connectionManager As ConnectionManagerBase
Dim resultObject As IResultObject
Dim rootProperty As String
Dim resultObjects As Dictionary(Of String, IResultObject)

ResultObjectHelpers.SetDictionaryIntoProperty(connectionManager, resultObject, rootProperty, resultObjects)

Syntax

'Declaration
Public Shared Sub SetDictionaryIntoProperty ( _
    connectionManager As ConnectionManagerBase, _
    resultObject As IResultObject, _
    rootProperty As String, _
    resultObjects As Dictionary(Of String, IResultObject) _
)
public static void SetDictionaryIntoProperty (
    ConnectionManagerBase connectionManager,
    IResultObject resultObject,
    string rootProperty,
    Dictionary<string,IResultObject> resultObjects
)
public:
static void SetDictionaryIntoProperty (
    ConnectionManagerBase^ connectionManager, 
    IResultObject^ resultObject, 
    String^ rootProperty, 
    Dictionary<String^, IResultObject^>^ resultObjects
)
public static void SetDictionaryIntoProperty (
    ConnectionManagerBase connectionManager, 
    IResultObject resultObject, 
    String rootProperty, 
    Dictionary<String,IResultObject> resultObjects
)
public static function SetDictionaryIntoProperty (
    connectionManager : ConnectionManagerBase, 
    resultObject : IResultObject, 
    rootProperty : String, 
    resultObjects : Dictionary<String,IResultObject>
)

Parameters

  • resultObject
    [in] IResultObject interface for getting and setting result object properties.
  • rootProperty
    [in] Root property in which to place the result objects.
  • resultObjects
    [in] System.Collections.Generic.Dictionary object that represents IResultObject interfaces.

Exceptions

Exception type Condition
ArgumentNullException

The resultObject parameter cannot be null.

ArgumentException

The resultObjects parameter cannot be null.

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.

Platforms

Development Platforms

Windows Server 2003, Windows Vista

Target Platforms

Windows Server 2003,Windows Vista

See Also

Reference

ResultObjectHelpers Class
ResultObjectHelpers Members
Microsoft.ConfigurationManagement.AdminConsole Namespace
ConnectionManagerBase
IResultObject