## Socket::SetSocketOption(SocketOptionLevel, SocketOptionName, bool) method


Sets the specified socket option to the specified value.

```cpp
void System::Net::Sockets::Socket::SetSocketOption(SocketOptionLevel optionLevel, SocketOptionName optionName, bool optionValue)
```


| Parameter | Type | Description |
| --- | --- | --- |
| optionLevel | SocketOptionLevel | The socket option level. |
| optionName | SocketOptionName | The name of the option that must be updated. |
| optionValue | bool | The value that must be set to the specified option. |

## See Also

* Enum [SocketOptionLevel](../../socketoptionlevel/)
* Enum [SocketOptionName](../../socketoptionname/)
* Class [Socket](../)
* Namespace [System::Net::Sockets](../../)
* Library [Aspose.PDF for C++](../../../)
## Socket::SetSocketOption(SocketOptionLevel, SocketOptionName, int32_t) method


Sets the specified socket option to the specified value.

```cpp
void System::Net::Sockets::Socket::SetSocketOption(SocketOptionLevel optionLevel, SocketOptionName optionName, int32_t optionValue)
```


| Parameter | Type | Description |
| --- | --- | --- |
| optionLevel | SocketOptionLevel | The socket option level. |
| optionName | SocketOptionName | The name of the option that must be updated. |
| optionValue | int32_t | The value that must be set to the specified option. |

## See Also

* Enum [SocketOptionLevel](../../socketoptionlevel/)
* Enum [SocketOptionName](../../socketoptionname/)
* Class [Socket](../)
* Namespace [System::Net::Sockets](../../)
* Library [Aspose.PDF for C++](../../../)
## Socket::SetSocketOption(SocketOptionLevel, SocketOptionName, System::ArrayPtr\<uint8_t\>) method


Sets the specified socket option to the specified value.

```cpp
void System::Net::Sockets::Socket::SetSocketOption(SocketOptionLevel optionLevel, SocketOptionName optionName, System::ArrayPtr<uint8_t> optionValue)
```


| Parameter | Type | Description |
| --- | --- | --- |
| optionLevel | SocketOptionLevel | The socket option level. |
| optionName | SocketOptionName | The name of the option that must be updated. |
| optionValue | System::ArrayPtr\<uint8_t\> | The value that must be set to the specified option. |

## See Also

* Enum [SocketOptionLevel](../../socketoptionlevel/)
* Enum [SocketOptionName](../../socketoptionname/)
* Typedef [ArrayPtr](../../../system/arrayptr/)
* Class [Socket](../)
* Namespace [System::Net::Sockets](../../)
* Library [Aspose.PDF for C++](../../../)
## Socket::SetSocketOption(SocketOptionLevel, SocketOptionName, System::SharedPtr\<Object\>) method


Sets the specified socket option to the specified value.

```cpp
void System::Net::Sockets::Socket::SetSocketOption(SocketOptionLevel optionLevel, SocketOptionName optionName, System::SharedPtr<Object> optionValue)
```


| Parameter | Type | Description |
| --- | --- | --- |
| optionLevel | SocketOptionLevel | The socket option level. |
| optionName | SocketOptionName | The name of the option that must be updated. |
| optionValue | System::SharedPtr\<Object\> | The value that must be set to the specified option. |

## See Also

* Enum [SocketOptionLevel](../../socketoptionlevel/)
* Enum [SocketOptionName](../../socketoptionname/)
* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Object](../../../system/object/)
* Class [Socket](../)
* Namespace [System::Net::Sockets](../../)
* Library [Aspose.PDF for C++](../../../)
