Share via


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

3/2/2014

Sets a property value (or create a new property) in the XML configuration file.

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

Syntax

'Declaration
Protected Sub SetConfigurationProperty ( _
    propertyName As String, _
    data As String _
)
protected void SetConfigurationProperty (
    string propertyName,
    string data
)
protected:
void SetConfigurationProperty (
    String^ propertyName, 
    String^ data
)
protected void SetConfigurationProperty (
    String propertyName, 
    String data
)
protected function SetConfigurationProperty (
    propertyName : String, 
    data : String
)

Parameters

  • propertyName
    Contains the name of the property the Service Object wants to set in the configuration XML file.
  • data

Remarks

Used by the Service Object to set a property value (or create a new property) in the XML configuration file.

The XML configuration file is stored at the following location:

HKEY_LOCAL_MACHINE\SOFTWARE\POSfor.NET\Configuration

SetConfigurationProperty may throw general exceptions and a PosControlException exception 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