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

# init(rawValue:)

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(_:)](authenticationservices/asauthorization/openidoperation/init(_:).md)
