Skip to main content

PlatformHandle Class

Definition​

Assembly:Avalonia.Base
Package:Avalonia

Represents a platform-specific handle.

public class PlatformHandle

Inheritance: object -> PlatformHandle

Implements: IPlatformHandle, IEquatable<PlatformHandle>

Constructors​

NameDescription
PlatformHandleInitializes a new instance of the Avalonia.Platform.PlatformHandle class.

PlatformHandle Constructor​

Initializes a new instance of the Avalonia.Platform.PlatformHandle class.

public PlatformHandle(IntPtr handle, string descriptor)

Parameters​

handle IntPtr

The handle.

descriptor string

An optional string that describes what handle represents.

Methods​

NameDescription
Equals (2 overloads)No summary available.
GetHashCodeNo summary available.
ToStringNo summary available.

Equals overloads​

Equals Method​

public bool Equals(Avalonia.Platform.PlatformHandle other)
Parameters​

other Avalonia.Platform.PlatformHandle

Returns​

bool

Equals Method​

public bool Equals(object obj)
Parameters​

obj object

Returns​

bool

GetHashCode Method​

public int GetHashCode()

Returns​

int

ToString Method​

public string ToString()

Returns​

string

Properties​

NameDescription
HandleGets the handle.
HandleDescriptorGets an optional string that describes what Avalonia.Platform.PlatformHandle.Handle represents.

Handle Property​

Gets the handle.

public IntPtr Handle { get; set; }

HandleDescriptor Property​

Gets an optional string that describes what Avalonia.Platform.PlatformHandle.Handle represents.

public string HandleDescriptor { get; set; }