SmartFoxServer Silverlight API
SetVariable Method (key, value)
Namespaces ► SmartFoxClientAPI.Data ► Buddy ► SetVariable(String, Object)
Adds or changes a given buddy variable
Declaration Syntax

C# | Visual Basic | Visual C++

    public void SetVariable(
    	string key,
    	Object value
    )

    Public Sub SetVariable ( _
    	key As String, _
    	value As Object _
    )

    public:
    void SetVariable(
    	String^ key,
    	Object^ value
    )

Parameters

key (String)

value (Object)

Remarks
Version:
SmartFoxServer Basic / Pro
Examples
CopyC#

    buddy.SetVariable("nickname", "Jester");

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