Property ProcessorAffinity
ProcessorAffinity
Gets or initializes the processor affinity for the LibreOffice processes. Must not be zero. Default is null, which means no affinity is set.
Declaration
public nint? ProcessorAffinity { get; init; }
Property Value
| Type | Description |
|---|---|
| nint? |
Remarks
See ProcessorAffinity for more details. Processor affinity is supported only on Windows and Linux.
On some platforms a mask with a bit for a processor that the machine doesn't have (e.g., 0x1F with 4 hardware threads) is not valid, and the processes that the library starts fail when it sets the mask on them.
Exceptions
| Type | Condition |
|---|---|
| ArgumentOutOfRangeException | The value is zero. |
| PlatformNotSupportedException | The value is set on a platform other than Windows or Linux. |