# WOPILock

Location: [gRPC API](https://developer.m-files.com/APIs/gRPC-API/index.md) > [Reference](https://developer.m-files.com/APIs/gRPC-API/Reference/index.md) > [Messages](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/index.md)

HTML version: https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.WOPILock/

Struct for WOPI Lock file information.

- **Full name:** `MFiles.WOPILock`
- **Proto file:** [`mfiles/structs.proto`](https://developer.m-files.com/APIs/gRPC-API/downloads/proto/mfiles/structs.proto)

<a id="fields"></a>

## Fields

| Field | Type | Number | Description |
|---|---|---|---|
| <a id="f-lock"></a>`lock` | `string` | 1 | The WOPI lock key. |

<a id="used-by-methods"></a>

## Used by methods

- [IRPCSharedLinks.GetWOPILock](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCSharedLinks/GetWOPILock/index.md): Not supported: always fails with "Not implemented.".
- [IRPCWOPIOperationsPublic.GetLockForWOPI](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCWOPIOperationsPublic/GetLockForWOPI/index.md): Gets the WOPI lock string of the file of a WOPI user session.

<a id="used-in-fields"></a>

## Used in fields

- [`GetWOPILockResponse.info`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCSharedLinks/GetWOPILock/index.md#response): WOPI lock data.
- [`GetLockForWOPIResponse.info`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCWOPIOperationsPublic/GetLockForWOPI/index.md#response): The current lock string in `lock`; empty when there is no lock.
