Table of Contents

Struct ConsoleMessageHandler

Namespace
SampSharp.OpenMp.Core.Api
Assembly
SampSharp.OpenMp.Core.dll

This type represents a pointer to an unmanaged open.mp ConsoleMessageHandler interface.

[OpenMpApi(new Type[] { })]
public readonly struct ConsoleMessageHandler : IEquatable<ConsoleMessageHandler>, ConsoleMessageHandler.IManagedInterface, IUnmanagedInterface
Implements
Inherited Members

Constructors

ConsoleMessageHandler(nint)

Initializes a new instance of the ConsoleMessageHandler struct.

public ConsoleMessageHandler(nint handle)

Parameters

handle nint

A pointer to the unmanaged interface.

Properties

Handle

Gets the handle to the unmanaged interface instance.

public nint Handle { get; }

Property Value

nint

HasValue

Gets a value indicating whether the pointer has a value.

public bool HasValue { get; }

Property Value

bool

Methods

Equals(ConsoleMessageHandler)

public bool Equals(ConsoleMessageHandler other)

Parameters

other ConsoleMessageHandler

Returns

bool

Equals(object?)

public override bool Equals(object? other)

Parameters

other object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

HandleConsoleMessage(string)

Handles a console message.

public void HandleConsoleMessage(string message)

Parameters

message string

The console message to handle.

Operators

operator ==(ConsoleMessageHandler, object?)

Determines whether the specified values are equal.

public static bool operator ==(ConsoleMessageHandler lhs, object? rhs)

Parameters

lhs ConsoleMessageHandler

The value on the left side of the operator.

rhs object

The value on the right side of the operator.

Returns

bool

true if the values are equal; otherwise, false.

operator !=(ConsoleMessageHandler, object?)

Determines whether the specified values are not equal.

public static bool operator !=(ConsoleMessageHandler lhs, object? rhs)

Parameters

lhs ConsoleMessageHandler

The value on the left side of the operator.

rhs object

The value on the right side of the operator.

Returns

bool

true if the values are not equal; otherwise, false.