Builds a dictionary of strings for IResultObject interfaces from the specified root property for the result object. Namespace: Microsoft.ConfigurationManagement.AdminConsole
Assembly: Microsoft.ConfigurationManagement.ManagementProvider (in microsoft.configurationmanagement.managementprovider.dll)

Usage

Visual Basic
Dim connectionManager As ConnectionManagerBase
Dim resultObject As IResultObject
Dim rootProperty As String
Dim keyProperty As String
Dim returnValue As Dictionary(Of String, IResultObject)

returnValue = ResultObjectHelpers.GetDictionaryFromProperty(connectionManager, resultObject, rootProperty, keyProperty)

Syntax

Visual Basic
Public Shared Function GetDictionaryFromProperty ( _
		connectionManager As ConnectionManagerBase, _
		resultObject As IResultObject, _
		rootProperty As String, _
		keyProperty As String _
) As Dictionary(Of String, IResultObject)
C#
public static Dictionary<string,IResultObject> GetDictionaryFromProperty (
		ConnectionManagerBase connectionManager,
		IResultObject resultObject,
		string rootProperty,
		string keyProperty
)
C++
public:
static Dictionary<String^, IResultObject^>^ GetDictionaryFromProperty (
		ConnectionManagerBase^ connectionManager, 
		IResultObject^ resultObject, 
		String^ rootProperty, 
		String^ keyProperty
)
J#
public static Dictionary<String,IResultObject> GetDictionaryFromProperty (
		ConnectionManagerBase connectionManager, 
		IResultObject resultObject, 
		String rootProperty, 
		String keyProperty
)
JScript
public static function GetDictionaryFromProperty (
		connectionManager : ConnectionManagerBase, 
		resultObject : IResultObject, 
		rootProperty : String, 
		keyProperty : String
) : Dictionary<String,IResultObject>

Parameters

connectionManager

[in] ConnectionManagerBase object.

resultObject

[in] IResultObject interface for getting and setting result object properties.

rootProperty

[in] Root property for which the method builds the dictionary.

keyProperty

[in] Property on which the method keys the array defined by rootProperty.

Return Value

System.Collections.Generic.Dictionary object that represents strings for IResultObject interfaces.

Exceptions

Exception type Condition
ArgumentNullException

The resultObject parameter cannot be null.

ArgumentException

The keyProperty parameter cannot be null or an empty string.

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