---
title: "init(_:)"
framework: authenticationservices
role: symbol
role_heading: Initializer
path: "authenticationservices/asauthorization/openidoperation/init(_:)"
---

# init(_:)

Creates an operation from the given string.

## Declaration

```swift
init(_ rawValue: String)
```

## Parameters

- `rawValue`: The name of the operation.

## Discussion

Discussion Typically you use one of the predefined operations, like operationLogin, instead of initializing one from a string.

## See Also

### Creating an Operation

- [init(rawValue:)](authenticationservices/asauthorization/openidoperation/init(rawvalue:).md)
