Determines whether a user can have a given status.

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

Syntax

C#
public bool CanHaveStatus(
	string userId,
	string statusId
)
Visual Basic
Public Function CanHaveStatus ( _
	userId As String, _
	statusId As String _
) As Boolean

Parameters

userId
Type: System..::..String
The user ID.
statusId
Type: System..::..String
The status ID.

Return Value

trueTruetruetrue (True in Visual Basic) if the user can have the specified status; otherwise, falseFalsefalsefalse (False in Visual Basic).

Remarks

Note
Accessing this property before a watch is started which includes this property raises a NotCachedException. A watch must be started first. For more information on watches see How Watches Work.

Exceptions

ExceptionCondition
System..::..InvalidOperationExceptionIf a watch is not in progress.
ININ.IceLib..::..NotCachedExceptionThe user ID is not being watched.
System..::..ArgumentNullExceptionA parameter is nullNothingnullptra null reference (Nothing in Visual Basic) or Empty.

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