Client.SetProtocolVersion(Object) Method

Definition

Sets what protocol version to use.

Set value to null to reset back to none.

public void SetProtocolVersion (object? value);

Parameters

value
Object

Value can be any object you want, as long as the TypeReaderWriterManager has a TypeReadWriter<T> for it.

Exceptions

Thrown if the Client is already connected to a Host

Thrown if the TypeReaderWriterManager doesn't have a TypeReadWriter<T> for the value Type.

Applies to