# 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](http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Int32) **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](https://help.sansar.com/hc/en-us/articles/115003551808) **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](https://help.sansar.com/hc/en-us/articles/115003551808) ([int](http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Int32) 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](http://www.go-mono.com/docs/monodoc.ashx?link=T:System.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
>
> ***


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sansar.com/latest/script-api-docs/sansar-script-namespace/sessionid.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
