# ArrowCArrayStreamLease

Pins one exported Arrow C stream allocation while a native consumer uses it.

Class 

`OfficeIMO.Data.Arrow.ArrowCArrayStreamOwner`

**Namespace**

`OfficeIMO.Data.Arrow.ArrowCArrayStreamOwner`

**Assembly**

`OfficeIMO.Data.Arrow`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[ArrowCArrayStreamOwner.cs:148](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Data.Arrow/ArrowCArrayStreamOwner.cs#L148)

**Implements**

`IDisposable`

**Modifiers**

sealed

Pins one exported Arrow C stream allocation while a native consumer uses it.

## Inheritance

- object
- ArrowCArrayStreamLease

## Usage

Explore 1 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 1

- Method [ArrowCArrayStreamOwner.AcquireLease](/api/data-arrow/officeimo-data-arrow-arrowcarraystreamowner/#method-acquirelease)

Filter members 

Show inherited

## Methods

`public CArrowArrayStream* DangerousGetPointer()` [#](#method-dangerousgetpointer)

[ArrowCArrayStreamOwner.cs:148](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Data.Arrow/ArrowCArrayStreamOwner.cs#L148)

Returns the native pointer while this lease is active.

Returns

`CArrowArrayStream*`

`public void Dispose()` [#](#method-dispose)

[ArrowCArrayStreamOwner.cs:172](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Data.Arrow/ArrowCArrayStreamOwner.cs#L172)

Releases this lease.

`public IArrowArrayStream ImportArrayStream()` [#](#method-importarraystream)

[ArrowCArrayStreamOwner.cs:154](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Data.Arrow/ArrowCArrayStreamOwner.cs#L154)

Imports the leased native stream into Apache Arrow's managed stream contract.

Returns

`IArrowArrayStream`

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public nint Address { get; }` [#](#property-address)

[ArrowCArrayStreamOwner.cs:139](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Data.Arrow/ArrowCArrayStreamOwner.cs#L139)

Gets the native stream address while this lease is active.

<!-- PowerForge markdown artifact sha256:E97D17A59151C849E9BAF76A0C729760147B09F7D04A33B698A8DA1297DD29AB -->
