# operator !=

> The not equals operator.

## Definition

* **Type:** Operator
* **Namespace:** [UnityEditor.Search](/engine/6000.6/script-reference/unityeditor/search.md)
* **Assembly:** UnityEditor

## operator !=(StringView, StringView)

The not equals operator.

```csharp
public static bool operator !=(StringView lhs, StringView rhs)
```

### Parameters

**** (\[StringView]\(/engine/6000.6/script-reference/unityeditor/search/stringview)): A [StringView](/engine/6000.6/script-reference/unityeditor/search/stringview.md).**** (\[StringView]\(/engine/6000.6/script-reference/unityeditor/search/stringview)): A [StringView](/engine/6000.6/script-reference/unityeditor/search/stringview.md).

### Returns

| Type                                                          | Description |
| ------------------------------------------------------------- | ----------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) |             |

## operator !=(StringView, string)

The not equals operator.

```csharp
public static bool operator !=(StringView lhs, string rhs)
```

### Parameters

**** (\[StringView]\(/engine/6000.6/script-reference/unityeditor/search/stringview)): A [StringView](/engine/6000.6/script-reference/unityeditor/search/stringview.md).**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): A [StringView](/engine/6000.6/script-reference/unityeditor/search/stringview.md).

### Returns

| Type                                                          | Description |
| ------------------------------------------------------------- | ----------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) |             |

## operator !=(string, StringView)

The not equals operator.

```csharp
public static bool operator !=(string lhs, StringView rhs)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): A [StringView](/engine/6000.6/script-reference/unityeditor/search/stringview.md).**** (\[StringView]\(/engine/6000.6/script-reference/unityeditor/search/stringview)): A [StringView](/engine/6000.6/script-reference/unityeditor/search/stringview.md).

### Returns

| Type                                                          | Description |
| ------------------------------------------------------------- | ----------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) |             |
