Gets the specified profile item.

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

Syntax

C#
public ProfileItem GetProfileItem(
	string namespacePath,
	string key
)
Visual Basic
Public Function GetProfileItem ( _
	namespacePath As String, _
	key As String _
) As ProfileItem

Parameters

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

Return Value

The requested profile item.

Remarks

This method will return the value from the cache, if the attribute is cached. If the attribute is not being cached, it will send a request to the server and get the attribute.

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 information could not be retrieved.

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