> For the complete documentation index, see [llms.txt](https://docs.sansar.com/latest/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sansar.com/latest/script-api-docs/sansar-script-namespace/objectid.md).

# ObjectID

### ObjectId Struct

Encapsulates an Object Id.

### Syntax

public struct **ObjectId**

### Member Details

#### Equals Method

> Value comparison for ObjectId.
>
> ### Syntax
>
> **Parameters**
>
> > *obj*
> >
> > The object to compare.
>
> **Returns**
>
> > true if the argument is an ObjectId 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 object.
>
> ### Syntax
>
> public static readonly [ObjectId](https://docs.sansar.com/latest/script-api-docs/sansar-script-namespace/objectid.md) **Invalid**
>
> ### Remarks
>
> ### Requirements
>
> **Namespace:** Sansar.Script\
> **Assembly:** Sansar.Script (in Sansar.Script.dll)\
> **Assembly Versions:** 1.0.0.0
>
> ***

#### op\_Equality Method

> ObjectId equality operator.
>
> ### Syntax
>
> **Parameters**
>
> > *a*
> >
> > First ObjectId to compare.
> >
> > *b*
> >
> > Second ObjectId to compare.
>
> **Returns**
>
> > true if the ObjectIds 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 uint.
>
> ### Syntax
>
> public static implicit operator [ObjectId](https://docs.sansar.com/latest/script-api-docs/sansar-script-namespace/objectid.md) ([uint](http://www.go-mono.com/docs/monodoc.ashx?link=T:System.UInt32) id)
>
> **Parameters**
>
> > *id*
> >
> > A uint representation of an ObjectId
>
> **Returns**
>
> > A new ObjectId initialized with the given uint.
>
> ### Remarks
>
> ### Requirements
>
> **Namespace:** Sansar.Script\
> **Assembly:** Sansar.Script (in Sansar.Script.dll)\
> **Assembly Versions:** 1.0.0.0
>
> ***

#### op\_Inequality Method

> ObjectId inequality operator.
>
> ### Syntax
>
> **Parameters**
>
> > *a*
> >
> > First ObjectId to compare.
> >
> > *b*
> >
> > Second ObjectId to compare.
>
> **Returns**
>
> > true if the ObjectIds 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
>
> ***
