NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

ConfigManager.GetItem (String, String)

This overload of the GetItem method accepts a selector in string form. It attempts to create a Selector from this string.

[Visual Basic]
Overloads Public Shared Function GetItem( _
   ByVal configType As String, _
   ByVal selector As String _
) As IConfigItem
[C#]
public static IConfigItem GetItem(
   string configType,
   string selector
);
[C++]
public: static IConfigItem* GetItem(
   String* configType,
   String* selector
);
[JScript]
public static function GetItem(
   configType : String,
   selector : String
) : IConfigItem;

Parameters

configType
A String indicating the type of configuration information to be retrieved.
selector
A String indicating the storage location of the configuration information to be retrieved. Refer to Selector for more details.

Example [C#]

[C#]

using System.Configuration.Core; 
 using System; 
 
 AppDomainConfigItem adc = (AppDomainConfigItem) ConfigManager.GetItem("AppDomain", "file://c:\\Program Files\\MyApplication\\config.cfg"); 
 
 Console.WriteLine(adc.GlobalPath); 
 Console.WriteLine(adc.PrivatePath); 
 Console.WriteLine(adc.ShadowCopy);

See Also

ConfigManager Class | ConfigManager Members | System.Configuration Namespace | ConfigManager.GetItem Overload List