# BicepValueFactoryProxy.Take

- Module: [Aspire.Hosting.Azure.Provisioning](/reference/api/go/aspire.hosting.azure.provisioning.md)
- Defined on: [BicepValueFactoryProxy](/reference/api/go/aspire.hosting.azure.provisioning/bicepvaluefactoryproxy.md)
- Version: `17.0.0-preview.1.26567.5`
- Kind: `method`

Creates a Bicep expression that takes characters from the start of a string.

## Definition

```go
type BicepValueFactoryProxy interface {
    // ... omitted for brevity
    Take(
        value any,
        count any,
    ) BicepValueProxy
}
```

## Signature

```go
Take(
    value any,
    count any,
) BicepValueProxy
```

## Parameters

- `value` (`any`) -- The string value.
- `count` (`any`) -- The number of characters to take.

## Returns

[`BicepValueProxy`](/reference/api/go/aspire.hosting.azure.provisioning/bicepvalueproxy.md) -- A Bicep string expression.

Returns a handle; failures surface later via `Err()`.

## Defined on

- [BicepValueFactoryProxy](/reference/api/go/aspire.hosting.azure.provisioning/bicepvaluefactoryproxy.md) -- `handle`
