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.GetProperty

The Get, GetItem and GetProperty methods provide read access to configuration information.

The GetProperty methods return a single property value. They can only be used to retrieve properties for singleton ConfigTypes. If more than one instance of this ConfigType exists (within the scope indicated by the Selector), the GetItem methods throw an exception.

Other methods exist to retrieve an entire singleton configuration items (GetItem) or collections of configuration items (Get).

Overload List

This overload of the GetProperty method accepts a selector in the form of an object.

[Visual Basic] Overloads Public Shared Function GetProperty(String, Selector, String) As Object
[C#] public static object GetProperty(String, Selector, String);
[C++] public: static Object* GetProperty(String*, Selector, String*);
[JScript] public static function GetProperty(String, Selector, String) : Object;

This overload of the GetProperty method accepts a selector in string form. It attempts to create a Selector from this string. It also accepts a set of flags indicating the desired level of service.

[Visual Basic] Overloads Public Shared Function GetProperty(String, String, Integer, String) As Object
[C#] public static object GetProperty(String, String, int, String);
[C++] public: static Object* GetProperty(String*, String*, int, String*);
[JScript] public static function GetProperty(String, String, int, String) : Object;

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

[Visual Basic] Overloads Public Shared Function GetProperty(String, String, String) As Object
[C#] public static object GetProperty(String, String, String);
[C++] public: static Object* GetProperty(String*, String*, String*);
[JScript] public static function GetProperty(String, String, String) : Object;

This overload of the GetProperty method accepts a selector in string form. It attempts to create a Selector from this string. It also accepts a set of flags indicating the desired level of service.

[Visual Basic] Overloads Public Shared Function GetProperty(String, Selector, Integer, String) As Object
[C#] public static object GetProperty(String, Selector, int, String);
[C++] public: static Object* GetProperty(String*, Selector, int, String*);
[JScript] public static function GetProperty(String, Selector, int, String) : Object;

See Also

ConfigManager Class | ConfigManager Members | System.Configuration Namespace