# QueueId Methods

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.queueid/)

## CompareTo(QueueId) {#compareto-orleans-streams-queueid-c5d2d10e}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.queueid/methods/compareto-orleans-streams-queueid-c5d2d10e/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Streaming/QueueId.cs#L66-L72)

```csharp
public int CompareTo(QueueId other)
```

Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.

### Parameters

- `other` (`QueueId`): An object to compare with this instance.

### Returns

A value that indicates the relative order of the objects being compared. The return value has these meanings: 

| Value | Meaning |
| --- | --- |
| Less than zero | This instance precedes `other` in the sort order. |
| Zero | This instance occurs in the same position in the sort order as `other`. |
| Greater than zero | This instance follows `other` in the sort order. |

## Equals(QueueId) {#equals-orleans-streams-queueid-b11b2478}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.queueid/methods/equals-orleans-streams-queueid-b11b2478/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Streaming/QueueId.cs#L76)

```csharp
public bool Equals(QueueId other)
```

Indicates whether the current object is equal to another object of the same type.

### Parameters

- `other` (`QueueId`): An object to compare with this object.

### Returns

`true` if the current object is equal to the `other` parameter; otherwise, `false`.

## Equals(object?) {#equals-object-nullable-bfcbcbbb}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.queueid/methods/equals-object-nullable-bfcbcbbb/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Streaming/QueueId.cs#L79)

```csharp
public override bool Equals(object? obj)
```

Indicates whether this instance and a specified object are equal.

### Parameters

- `obj` (`object?`): The object to compare with the current instance.

### Returns

`true` if `obj` and this instance are the same type and represent the same value; otherwise, `false`.

## GetHashCode {#gethashcode-d33c4cb3}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.queueid/methods/gethashcode-d33c4cb3/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Streaming/QueueId.cs#L82)

```csharp
public override int GetHashCode()
```

Returns the hash code for this instance.

### Returns

A 32-bit signed integer that is the hash code for this instance.

## GetNumericId {#getnumericid-2c424489}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.queueid/methods/getnumericid-2c424489/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Streaming/QueueId.cs#L53)

```csharp
public uint GetNumericId()
```

Gets the numeric identifier.

### Returns

The numeric identifier.

## GetQueueId(string, uint, uint) {#getqueueid-string-uint-uint-c77f2ce2}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.queueid/methods/getqueueid-string-uint-uint-c77f2ce2/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Streaming/QueueId.cs#L41)

```csharp
public static QueueId GetQueueId(string queueName, uint queueId, uint hash)
```

Gets the queue identifier.

### Parameters

- `queueName` (`string`): Name of the queue.
- `queueId` (`uint`): The queue identifier.
- `hash` (`uint`): The hash.

### Returns

The queue identifier.

## GetStringNamePrefix {#getstringnameprefix-39963df4}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.queueid/methods/getstringnameprefix-39963df4/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Streaming/QueueId.cs#L47)

```csharp
public string GetStringNamePrefix()
```

Gets the queue name prefix.

### Returns

The queue name prefix.

## GetUniformHashCode {#getuniformhashcode-2646d902}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.queueid/methods/getuniformhashcode-2646d902/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Streaming/QueueId.cs#L56)

```csharp
public uint GetUniformHashCode()
```

## ToString {#tostring-44d6faec}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.queueid/methods/tostring-44d6faec/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Streaming/QueueId.cs#L89)

```csharp
public override string ToString()
```

Returns the fully qualified type name of this instance.

### Returns

The fully qualified type name.

## ToStringWithHashCode {#tostringwithhashcode-10f5f0e1}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.queueid/methods/tostringwithhashcode-10f5f0e1/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Streaming/QueueId.cs#L122)

```csharp
public string ToStringWithHashCode()
```

Returns a string representation of this instance which includes its uniform hash code.

### Returns

A string representation of this instance which includes its uniform hash code.

## operator ==(QueueId, QueueId) {#op-equality-orleans-streams-queueid-orleans-streams-queueid-92c878b4}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.queueid/methods/op-equality-orleans-streams-queueid-orleans-streams-queueid-92c878b4/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Streaming/QueueId.cs#L84)

```csharp
public static bool operator ==(QueueId left, QueueId right)
```

### Parameters

- `left` (`QueueId`)
- `right` (`QueueId`)

## operator !=(QueueId, QueueId) {#op-inequality-orleans-streams-queueid-orleans-streams-queueid-a5918698}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.queueid/methods/op-inequality-orleans-streams-queueid-orleans-streams-queueid-a5918698/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Streaming/QueueId.cs#L86)

```csharp
public static bool operator !=(QueueId left, QueueId right)
```

### Parameters

- `left` (`QueueId`)
- `right` (`QueueId`)
