Share via


PosCommon.GetConfigurationProperty Method (POS for .NET v1.14 SDK Documentation)

3/2/2014

Used by the Service Object to retrieve the specified property from the XML configuration file.

Namespace: Microsoft.PointOfService
Assembly: Microsoft.PointOfService (in microsoft.pointofservice.dll)

Syntax

'Declaration
Protected Function GetConfigurationProperty ( _
    propertyName As String _
) As String
protected string GetConfigurationProperty (
    string propertyName
)
protected:
String^ GetConfigurationProperty (
    String^ propertyName
)
protected String GetConfigurationProperty (
    String propertyName
)
protected function GetConfigurationProperty (
    propertyName : String
) : String

Parameters

  • propertyName
    Contains the name of the property the Service Object wants to retrieve from the configuration XML file.

Remarks

The XML configuration file is stored at the following location:

HKEY_LOCAL_MACHINE\SOFTWARE\POSfor.NET\Configuration

GetConfigurationProperty may throw general exceptions and a PosControlException with an Illegal Errorcode if the specified property name is not valid.

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

Reference

PosCommon Class
PosCommon Members
Microsoft.PointOfService Namespace