# PubSubSubscriptionState Methods

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

## AddFilter(string) {#addfilter-string-e13fd856}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.pubsubsubscriptionstate/methods/addfilter-string-e13fd856/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Streaming/PubSub/PubSubSubscriptionState.cs#L60-L61)

```csharp
public void AddFilter(string filterData)
```

### Parameters

- `filterData` (`string`)

## Equals(GuidId) {#equals-orleans-runtime-guidid-6ef5140d}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.pubsubsubscriptionstate/methods/equals-orleans-runtime-guidid-6ef5140d/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Streaming/PubSub/PubSubSubscriptionState.cs#L80-L81)

```csharp
public bool Equals(GuidId subscriptionId)
```

### Parameters

- `subscriptionId` (`GuidId`)

## Equals(PubSubSubscriptionState) {#equals-orleans-streams-pubsubsubscriptionstate-39dfe3aa}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.pubsubsubscriptionstate/methods/equals-orleans-streams-pubsubsubscriptionstate-39dfe3aa/)

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

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

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

### Parameters

- `other` (`PubSubSubscriptionState`): 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-226647c7}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.pubsubsubscriptionstate/methods/equals-object-226647c7/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Streaming/PubSub/PubSubSubscriptionState.cs#L65-L67)

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

Determines whether the specified object is equal to the current object.

### Parameters

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

### Returns

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

## Fault {#fault-f8f658cc}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.pubsubsubscriptionstate/methods/fault-f8f658cc/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Streaming/PubSub/PubSubSubscriptionState.cs#L113-L114)

```csharp
public void Fault()
```

## GetHashCode {#gethashcode-6aeb5a72}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.pubsubsubscriptionstate/methods/gethashcode-6aeb5a72/)

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

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

Serves as the default hash function.

### Returns

A hash code for the current object.

## ToString {#tostring-9cfd2bf3}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.pubsubsubscriptionstate/methods/tostring-9cfd2bf3/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Streaming/PubSub/PubSubSubscriptionState.cs#L107-L108)

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

Returns a string that represents the current object.

### Returns

A string that represents the current object.

## operator ==(PubSubSubscriptionState, PubSubSubscriptionState) {#op-equality-orleans-streams-pubsubsubscriptionstate-orleans-streams-pubsubsubscr-eff30a87}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.pubsubsubscriptionstate/methods/op-equality-orleans-streams-pubsubsubscriptionstate-orleans-streams-pubsubsubscr-eff30a87/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Streaming/PubSub/PubSubSubscriptionState.cs#L91-L97)

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

### Parameters

- `left` (`PubSubSubscriptionState`)
- `right` (`PubSubSubscriptionState`)

## operator !=(PubSubSubscriptionState, PubSubSubscriptionState) {#op-inequality-orleans-streams-pubsubsubscriptionstate-orleans-streams-pubsubsubs-8828c853}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.pubsubsubscriptionstate/methods/op-inequality-orleans-streams-pubsubsubscriptionstate-orleans-streams-pubsubsubs-8828c853/)

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

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

### Parameters

- `left` (`PubSubSubscriptionState`)
- `right` (`PubSubSubscriptionState`)
