Sansar Docs
Ask or search…
K

SessionID

SessionId Struct

Encapsulates a Session Id.

Syntax

public struct SessionId

Member Details

Equals Method

Value comparison for SessionId.

Syntax

Parameters
obj
The session to compare.
Returns
true if the argument is an SessionId and has the same value.

Remarks

Requirements

Namespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0

GetHashCode Method

Retrieves the hash code for this instance.

Syntax

public override int GetHashCode ()
Returns
The hash code for this instance.

Remarks

Requirements

Namespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0

Invalid Field

The invalid id session.

Syntax

public static readonly SessionId Invalid

Remarks

Requirements

Namespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0

op_Equality Method

SessionId equality operator.

Syntax

Parameters
a
First SessionId to compare.
b
Second SessionId to compare.
Returns
true if the SessionIds have the same value.

Remarks

Requirements

Namespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0

Conversion Method

Internal explicit conversion from a int.

Syntax

public static implicit operator SessionId (int id)
Parameters
id
A int representation of an SessionId
Returns
A new SessionId initialized with the given int.

Remarks

Requirements

Namespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0

op_Inequality Method

SessionId inequality operator.

Syntax

Parameters
a
First SessionId to compare.
b
Second SessionId to compare.
Returns
true if the SessionIds have a different value.

Remarks

Requirements

Namespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0

ToString Method

Converts the id to a hexadecimal string representation.

Syntax

public override string ToString ()
Returns
The hexadecimal string representation.

Remarks

Requirements

Namespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0