Show / Hide Table of Contents

Method RegisterAssembly

| Edit this page View Source

RegisterAssembly(Assembly, bool)

Registers messages from a different assembly

Declaration
public static int RegisterAssembly(Assembly assembly, bool replace = false)
Parameters
Type Name Description
Assembly assembly

The assembly to load custom message types from

bool replace

Set to true if you want to replace already registered type. Otherwise this method will throw.

Returns
Type Description
int

Number of message types found.

Remarks

The custom message MUST have a constructor taking a string as first parameter (message type name) and a string[] (message parts) as the second. In addition the class must have the NmeaMessageTypeAttribute defind on the class.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0main, v3.0
.NETmain, v3.0
.NET Windowsmain, v3.0
.NET Androidmain, v3.0
.NET iOSmain, v3.0
.NET Frameworkmain, v3.0, v2.2, v2.1, v2.0
UWPmain, v3.0
Xamarin.Androidv2.2, v2.1, v2.0
Xamarin.iOSv2.2, v2.1, v2.0
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX