# Contains(string)

> Checks whether an asset is registered under the given address.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Localization.Providers](/engine/6000.7/script-reference/unity/localization/providers.md)
* **Assembly:** UnityEngine.LocalizationRuntimeModule

```csharp
public bool Contains(string address)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The address to test.

### Returns

| Type                                                          | Description                                                             |
| ------------------------------------------------------------- | ----------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | `true` if an asset is registered under the address; otherwise, `false`. |

### Remarks

An empty or null `address` returns `false`.

Test whether an address is registered before and after adding it.

### Examples

```csharp
using Unity.Localization.Providers;
using UnityEngine;

namespace Unity.Localization.Samples
{
    public class ReferencedAssetProviderContainsExample
    {
        public void Run()
        {
            var provider = new ReferencedAssetProvider();

            Debug.Log(provider.Contains("UI/Logo"));   // False

            provider.Add("UI/Logo", new Texture2D(2, 2));

            Debug.Log(provider.Contains("UI/Logo"));   // True
        }
    }
}
```
