# Class ContextPropagationOptions (2.66.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [2.66.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ContextPropagationOptions)
- [2.63.0](https://docs.cloud.google.com/dotnet/docs/reference/Grpc.Core/2.63.0/Grpc.Core.ContextPropagationOptions)
- [2.48.0](https://docs.cloud.google.com/dotnet/docs/reference/Grpc.Core/2.48.0/Grpc.Core.ContextPropagationOptions)

    public class ContextPropagationOptions

Options for [ContextPropagationToken](https://docs.cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ContextPropagationToken).

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> ContextPropagationOptions

## Inherited Members

[object.Equals(object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)) [object.Equals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)) [object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) [object.ReferenceEquals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Grpc.Core](https://docs.cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core)

## Assembly

Grpc.Core.Api.dll

## Constructors

### ContextPropagationOptions(bool, bool)

    public ContextPropagationOptions(bool propagateDeadline = true, bool propagateCancellation = true)

Creates new context propagation options.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `propagateDeadline` | `https://learn.microsoft.com/dotnet/api/system.boolean` If set to `true` parent call's deadline will be propagated to the child call. |
| `propagateCancellation` | `https://learn.microsoft.com/dotnet/api/system.boolean` If set to `true` parent call's cancellation token will be propagated to the child call. |

## Fields

### Default

    public static readonly ContextPropagationOptions Default

The context propagation options that will be used by default.

| **Field Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ContextPropagationOptions` |   |

## Properties

### IsPropagateCancellation

    public bool IsPropagateCancellation { get; }

`true` if parent call's cancellation token should be propagated to the child call.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### IsPropagateDeadline

    public bool IsPropagateDeadline { get; }

`true` if parent call's deadline should be propagated to the child call.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |