SmartFoxServer Silverlight API
IsSpectator Method
Namespaces ► SmartFoxClientAPI.Data ► User ► IsSpectator()()()
A boolean flag indicating if the user is a spectator in the current room.
Declaration Syntax

C# | Visual Basic | Visual C++

    public bool IsSpectator()

    Public Function IsSpectator As Boolean

    public:
    bool IsSpectator()

Return Value
true if the user is a spectator.
Remarks
Version:
SmartFoxServer Basic / Pro
Examples
CopyC#

    if (user.IsSpectator())
        Debug.WriteLine("The user is a spectator");

Assembly: SmartFoxClientAPI_Silverlight (Module: SmartFoxClientAPI_Silverlight) Version: 1.0.0.0 (1.0.0.0)