Table of Contents

Class PlatformHandle

Namespace
Avalonia.Platform
Assembly
Avalonia.Base.dll

Represents a platform-specific handle.

public class PlatformHandle : IPlatformHandle, IEquatable<PlatformHandle>
Inheritance
PlatformHandle
Implements
Inherited Members

Constructors

PlatformHandle(nint, string?)

Initializes a new instance of the PlatformHandle class.

public PlatformHandle(nint handle, string? descriptor)

Parameters

handle nint

The handle.

descriptor string

An optional string that describes what handle represents.

Properties

Handle

Gets the handle.

public nint Handle { get; }

Property Value

nint

HandleDescriptor

Gets an optional string that describes what Handle represents.

public string? HandleDescriptor { get; }

Property Value

string

Methods

Equals(PlatformHandle?)

public bool Equals(PlatformHandle? other)

Parameters

other PlatformHandle

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(PlatformHandle?, PlatformHandle?)

public static bool operator ==(PlatformHandle? left, PlatformHandle? right)

Parameters

left PlatformHandle
right PlatformHandle

Returns

bool

operator !=(PlatformHandle?, PlatformHandle?)

public static bool operator !=(PlatformHandle? left, PlatformHandle? right)

Parameters

left PlatformHandle
right PlatformHandle

Returns

bool