# QueueCacheCursorResult&lt;TCursor&gt;.FromCursor(TCursor)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.queuecachecursorresult-1/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.queuecachecursorresult-1/methods/)

[Source](https://github.com/dotnet/orleans/blob/1644940b035c7bdf215a4fd7135757c06bcfe9ec/src/Orleans.Streaming/QueueAdapters/QueueCacheCursorResult.cs#L224-L225)

```csharp
public static QueueCacheCursorResult<TCursor> FromCursor(TCursor cursor)
```

Creates a successful result.

### Parameters

- `cursor` (`TCursor`): The acquired cursor.

### Returns

A successful cursor result.

### Exceptions

- `System.ArgumentNullException`: `cursor` is `null`.
