Sets the specified profile item.

Namespace: ININ.IceLib.Connection.Extensions
Assembly: ININ.IceLib (in ININ.IceLib.dll) Version: 0.0.0.0 (22.3.0.218)

Syntax

C#
public void SetProfileItem(
	string namespacePath,
	string key,
	string value
)
Visual Basic
Public Sub SetProfileItem ( _
	namespacePath As String, _
	key As String, _
	value As String _
)

Parameters

namespacePath
Type: System..::..String
The namespace path.
key
Type: System..::..String
The key.
value
Type: System..::..String
The value.

Remarks

namespacePath represents a path to organize the settings. The application may require that some settings be grouped together, so the namespacePath would be used to organize them that way, hierarchically. It also helps avoid collisions with the settings from other applications/code. Namespaces use the '/' character as a separator to build complex hierarchies. For example, "MyApplication/Configuration" and "MyApplication/Layout" would both be sub-namespaces situated in the "MyApplication" namespace.

Exceptions

ExceptionCondition
System..::..ArgumentNullExceptionA parameter is nullNothingnullptra null reference (Nothing in Visual Basic).
System..::..ArgumentExceptionThe namespacePath or key length is zero.
ININ.IceLib..::..IceLibExceptionThe custom profile item cannot be modified because CanEditProfileItems is trueTruetruetrue (True in Visual Basic).

Version Information

Supported for IC Server version 2015 R1 and beyond.
For 4.0, supported for IC Server version 4.0 GA and beyond.
For 3.0, supported for IC Server version 3.0 GA and beyond.

See Also