*** id: 801b0f56-21ca-460c-b19b-d19124e16ea5 title: CallDetect slug: /dotnet/reference/calling/call-detect max-toc-depth: 3 ---------------- [call-detect-detect-type]: /docs/server-sdk/v2/dotnet/reference/calling/call-detect-type # SignalWire.Relay.Calling.CallDetect This object represents a call detection. ## Constructor The only constructor is the default constructor, properties should all be assigned by initializer or after construction. **Parameters** None **Examples** > Basic Example ```csharp CallDetect detect = new CallDetect { Type = CallDetect.DetectType.machine, Parameters = new CallDetect.MachineParams { // Use default machine detection parameters } }; ``` ## Properties | Property | Type | Description | | ------------ | --------------------------------------------------------------------------- | ----------------------------------------------------------- | | `Type` | [`SignalWire.Relay.Calling.CallDetect.DetectType`][call-detect-detect-type] | This object indicates the type of the configuration object. | | `Parameters` | object | The configuration object for the operation. | ## Methods ## ParametersAs\() This is a helper method to convert the `Parameters` to the real type. **Parameters** | Parameter | Type | Required | Description | | --------- | ---- | ------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------- | | `T` | Type | required | This is the data type for the conversion, see [`SignalWire.Relay.Calling.CallDetect.DetectType`][call-detect-detect-type] for more information. | **Returns** `T` - This is an instance of the data type resulting from the conversion, see [`SignalWire.Relay.Calling.CallDetect.DetectType`][call-detect-detect-type] for more information. **Examples** ```csharp CallDetect.DigitParams digitParams = detect.ParametersAs(); CallDetect.FaxParams faxParams = detect.ParametersAs(); CallDetect.MachineParams machineParams = detect.ParametersAs(); ``` ## Events None