Table of Contents

Interface IComponent.IManagedInterface

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

Represents the managed interface implemented by its unmanaged counterpart.

public interface IComponent.IManagedInterface : IUnmanagedInterface
Inherited Members

Properties

ComponentId

Gets the identifier of the component type.

public static abstract UID ComponentId { get; }

Property Value

UID

Methods

ComponentName()

Gets the name of the component.

string ComponentName()

Returns

string

The component name.

ComponentVersion()

Gets the version of the component.

SemanticVersion ComponentVersion()

Returns

SemanticVersion

The component version.

FromComponentHandle(nint)

Casts a handle from a IComponent handle to a handle of this type.

public static abstract nint FromComponentHandle(nint handle)

Parameters

handle nint

The IComponent handle.

Returns

nint

The handle of this type.

GetComponentType()

Gets the type of the component.

ComponentType GetComponentType()

Returns

ComponentType

The component type.

SupportedVersion()

Gets the supported version of the component.

int SupportedVersion()

Returns

int

The supported version of the component.

Remarks

The idea is for the SDK to be totally forward compatible, so code built at any time will always work, thanks to ABI compatibility. This method is an emergency trap door, just in case that's ever not the problem. Check which major version this component was built for, if it isn't the current major version, fail to load it. Always just returns a constant, recompiling will often be enough to upgrade. virtual and final to be the vtable, but it can't be overridden because it is a constant.