Table of Contents

Class PapyrusFunctionRegistrarExtensions

Namespace
SkyrimForge.Papyrus
Assembly
SkyrimForge.Game.dll

Provides extension members for IPapyrusFunctionRegistrar.

public static class PapyrusFunctionRegistrarExtensions
Inheritance
PapyrusFunctionRegistrarExtensions
Inherited Members

Methods

RegisterInstance<TSelf>(IPapyrusFunctionRegistrar, string, string, Action<TSelf?>)

Registers the implementation of a native instance (non-global) function.

public static void RegisterInstance<TSelf>(this IPapyrusFunctionRegistrar registrar, string selfClassName, string functionName, Action<TSelf?> body) where TSelf : notnull

Parameters

registrar IPapyrusFunctionRegistrar
selfClassName string
functionName string
body Action<TSelf>

Type Parameters

TSelf

Remarks

The receiver is the delegate's first parameter, and counts against neither the argument indices nor the game's limit of eleven arguments. A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.

Exceptions

ArgumentNullException

selfClassName, functionName, or body is null.

ArgumentException

selfClassName or functionName is empty, or TSelf is not a form view.

TypeInitializationException

Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.

InvalidOperationException

The function was not registered. The message names the reason.

RegisterInstance<TSelf, T0, T1, T2, T3, T4, T5, T6, T7, T8>(IPapyrusFunctionRegistrar, string, string, Action<TSelf?, T0?, T1?, T2?, T3?, T4?, T5?, T6?, T7?, T8?>)

Registers the implementation of a native instance (non-global) function.

public static void RegisterInstance<TSelf, T0, T1, T2, T3, T4, T5, T6, T7, T8>(this IPapyrusFunctionRegistrar registrar, string selfClassName, string functionName, Action<TSelf?, T0?, T1?, T2?, T3?, T4?, T5?, T6?, T7?, T8?> body)

Parameters

registrar IPapyrusFunctionRegistrar
selfClassName string
functionName string
body Action<TSelf, T0, T1, T2, T3, T4, T5, T6, T7, T8>

Type Parameters

TSelf
T0
T1
T2
T3
T4
T5
T6
T7
T8

Remarks

The receiver is the delegate's first parameter, and counts against neither the argument indices nor the game's limit of eleven arguments. A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.

Exceptions

ArgumentNullException

selfClassName, functionName, or body is null.

ArgumentException

selfClassName or functionName is empty, or TSelf is not a form view.

TypeInitializationException

Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.

InvalidOperationException

The function was not registered. The message names the reason.

RegisterInstance<TSelf, T0, T1, T2, T3, T4, T5, T6, T7, TReturn>(IPapyrusFunctionRegistrar, string, string, Func<TSelf?, T0?, T1?, T2?, T3?, T4?, T5?, T6?, T7?, TReturn>)

Registers the implementation of a native instance (non-global) function.

public static void RegisterInstance<TSelf, T0, T1, T2, T3, T4, T5, T6, T7, TReturn>(this IPapyrusFunctionRegistrar registrar, string selfClassName, string functionName, Func<TSelf?, T0?, T1?, T2?, T3?, T4?, T5?, T6?, T7?, TReturn> body)

Parameters

registrar IPapyrusFunctionRegistrar
selfClassName string
functionName string
body Func<TSelf, T0, T1, T2, T3, T4, T5, T6, T7, TReturn>

Type Parameters

TSelf
T0
T1
T2
T3
T4
T5
T6
T7
TReturn

Remarks

The receiver is the delegate's first parameter, and counts against neither the argument indices nor the game's limit of eleven arguments. A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.

Exceptions

ArgumentNullException

selfClassName, functionName, or body is null.

ArgumentException

selfClassName or functionName is empty, or TSelf is not a form view.

TypeInitializationException

Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.

InvalidOperationException

The function was not registered. The message names the reason.

RegisterInstance<TSelf, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9>(IPapyrusFunctionRegistrar, string, string, Action<TSelf?, T0?, T1?, T2?, T3?, T4?, T5?, T6?, T7?, T8?, T9?>)

Registers the implementation of a native instance (non-global) function.

public static void RegisterInstance<TSelf, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9>(this IPapyrusFunctionRegistrar registrar, string selfClassName, string functionName, Action<TSelf?, T0?, T1?, T2?, T3?, T4?, T5?, T6?, T7?, T8?, T9?> body)

Parameters

registrar IPapyrusFunctionRegistrar
selfClassName string
functionName string
body Action<TSelf, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9>

Type Parameters

TSelf
T0
T1
T2
T3
T4
T5
T6
T7
T8
T9

Remarks

The receiver is the delegate's first parameter, and counts against neither the argument indices nor the game's limit of eleven arguments. A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.

Exceptions

ArgumentNullException

selfClassName, functionName, or body is null.

ArgumentException

selfClassName or functionName is empty, or TSelf is not a form view.

TypeInitializationException

Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.

InvalidOperationException

The function was not registered. The message names the reason.

RegisterInstance<TSelf, T0, T1, T2, T3, T4, T5, T6, T7, T8, TReturn>(IPapyrusFunctionRegistrar, string, string, Func<TSelf?, T0?, T1?, T2?, T3?, T4?, T5?, T6?, T7?, T8?, TReturn>)

Registers the implementation of a native instance (non-global) function.

public static void RegisterInstance<TSelf, T0, T1, T2, T3, T4, T5, T6, T7, T8, TReturn>(this IPapyrusFunctionRegistrar registrar, string selfClassName, string functionName, Func<TSelf?, T0?, T1?, T2?, T3?, T4?, T5?, T6?, T7?, T8?, TReturn> body)

Parameters

registrar IPapyrusFunctionRegistrar
selfClassName string
functionName string
body Func<TSelf, T0, T1, T2, T3, T4, T5, T6, T7, T8, TReturn>

Type Parameters

TSelf
T0
T1
T2
T3
T4
T5
T6
T7
T8
TReturn

Remarks

The receiver is the delegate's first parameter, and counts against neither the argument indices nor the game's limit of eleven arguments. A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.

Exceptions

ArgumentNullException

selfClassName, functionName, or body is null.

ArgumentException

selfClassName or functionName is empty, or TSelf is not a form view.

TypeInitializationException

Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.

InvalidOperationException

The function was not registered. The message names the reason.

RegisterInstance<TSelf, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(IPapyrusFunctionRegistrar, string, string, Action<TSelf?, T0?, T1?, T2?, T3?, T4?, T5?, T6?, T7?, T8?, T9?, T10?>)

Registers the implementation of a native instance (non-global) function.

public static void RegisterInstance<TSelf, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(this IPapyrusFunctionRegistrar registrar, string selfClassName, string functionName, Action<TSelf?, T0?, T1?, T2?, T3?, T4?, T5?, T6?, T7?, T8?, T9?, T10?> body)

Parameters

registrar IPapyrusFunctionRegistrar
selfClassName string
functionName string
body Action<TSelf, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>

Type Parameters

TSelf
T0
T1
T2
T3
T4
T5
T6
T7
T8
T9
T10

Remarks

The receiver is the delegate's first parameter, and counts against neither the argument indices nor the game's limit of eleven arguments. A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.

Exceptions

ArgumentNullException

selfClassName, functionName, or body is null.

ArgumentException

selfClassName or functionName is empty, or TSelf is not a form view.

TypeInitializationException

Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.

InvalidOperationException

The function was not registered. The message names the reason.

RegisterInstance<TSelf, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, TReturn>(IPapyrusFunctionRegistrar, string, string, Func<TSelf?, T0?, T1?, T2?, T3?, T4?, T5?, T6?, T7?, T8?, T9?, TReturn>)

Registers the implementation of a native instance (non-global) function.

public static void RegisterInstance<TSelf, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, TReturn>(this IPapyrusFunctionRegistrar registrar, string selfClassName, string functionName, Func<TSelf?, T0?, T1?, T2?, T3?, T4?, T5?, T6?, T7?, T8?, T9?, TReturn> body)

Parameters

registrar IPapyrusFunctionRegistrar
selfClassName string
functionName string
body Func<TSelf, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, TReturn>

Type Parameters

TSelf
T0
T1
T2
T3
T4
T5
T6
T7
T8
T9
TReturn

Remarks

The receiver is the delegate's first parameter, and counts against neither the argument indices nor the game's limit of eleven arguments. A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.

Exceptions

ArgumentNullException

selfClassName, functionName, or body is null.

ArgumentException

selfClassName or functionName is empty, or TSelf is not a form view.

TypeInitializationException

Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.

InvalidOperationException

The function was not registered. The message names the reason.

RegisterInstance<TSelf, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TReturn>(IPapyrusFunctionRegistrar, string, string, Func<TSelf?, T0?, T1?, T2?, T3?, T4?, T5?, T6?, T7?, T8?, T9?, T10?, TReturn>)

Registers the implementation of a native instance (non-global) function.

public static void RegisterInstance<TSelf, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TReturn>(this IPapyrusFunctionRegistrar registrar, string selfClassName, string functionName, Func<TSelf?, T0?, T1?, T2?, T3?, T4?, T5?, T6?, T7?, T8?, T9?, T10?, TReturn> body)

Parameters

registrar IPapyrusFunctionRegistrar
selfClassName string
functionName string
body Func<TSelf, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TReturn>

Type Parameters

TSelf
T0
T1
T2
T3
T4
T5
T6
T7
T8
T9
T10
TReturn

Remarks

The receiver is the delegate's first parameter, and counts against neither the argument indices nor the game's limit of eleven arguments. A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.

Exceptions

ArgumentNullException

selfClassName, functionName, or body is null.

ArgumentException

selfClassName or functionName is empty, or TSelf is not a form view.

TypeInitializationException

Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.

InvalidOperationException

The function was not registered. The message names the reason.

RegisterInstance<TSelf, T0>(IPapyrusFunctionRegistrar, string, string, Action<TSelf?, T0?>)

Registers the implementation of a native instance (non-global) function.

public static void RegisterInstance<TSelf, T0>(this IPapyrusFunctionRegistrar registrar, string selfClassName, string functionName, Action<TSelf?, T0?> body) where TSelf : notnull where T0 : notnull

Parameters

registrar IPapyrusFunctionRegistrar
selfClassName string
functionName string
body Action<TSelf, T0>

Type Parameters

TSelf
T0

Remarks

The receiver is the delegate's first parameter, and counts against neither the argument indices nor the game's limit of eleven arguments. A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.

Exceptions

ArgumentNullException

selfClassName, functionName, or body is null.

ArgumentException

selfClassName or functionName is empty, or TSelf is not a form view.

TypeInitializationException

Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.

InvalidOperationException

The function was not registered. The message names the reason.

RegisterInstance<TSelf, TReturn>(IPapyrusFunctionRegistrar, string, string, Func<TSelf?, TReturn>)

Registers the implementation of a native instance (non-global) function.

public static void RegisterInstance<TSelf, TReturn>(this IPapyrusFunctionRegistrar registrar, string selfClassName, string functionName, Func<TSelf?, TReturn> body) where TSelf : notnull where TReturn : notnull

Parameters

registrar IPapyrusFunctionRegistrar
selfClassName string
functionName string
body Func<TSelf, TReturn>

Type Parameters

TSelf
TReturn

Remarks

The receiver is the delegate's first parameter, and counts against neither the argument indices nor the game's limit of eleven arguments. A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.

Exceptions

ArgumentNullException

selfClassName, functionName, or body is null.

ArgumentException

selfClassName or functionName is empty, or TSelf is not a form view.

TypeInitializationException

Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.

InvalidOperationException

The function was not registered. The message names the reason.

RegisterInstance<TSelf, T0, T1>(IPapyrusFunctionRegistrar, string, string, Action<TSelf?, T0?, T1?>)

Registers the implementation of a native instance (non-global) function.

public static void RegisterInstance<TSelf, T0, T1>(this IPapyrusFunctionRegistrar registrar, string selfClassName, string functionName, Action<TSelf?, T0?, T1?> body) where TSelf : notnull where T0 : notnull where T1 : notnull

Parameters

registrar IPapyrusFunctionRegistrar
selfClassName string
functionName string
body Action<TSelf, T0, T1>

Type Parameters

TSelf
T0
T1

Remarks

The receiver is the delegate's first parameter, and counts against neither the argument indices nor the game's limit of eleven arguments. A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.

Exceptions

ArgumentNullException

selfClassName, functionName, or body is null.

ArgumentException

selfClassName or functionName is empty, or TSelf is not a form view.

TypeInitializationException

Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.

InvalidOperationException

The function was not registered. The message names the reason.

RegisterInstance<TSelf, T0, TReturn>(IPapyrusFunctionRegistrar, string, string, Func<TSelf?, T0?, TReturn>)

Registers the implementation of a native instance (non-global) function.

public static void RegisterInstance<TSelf, T0, TReturn>(this IPapyrusFunctionRegistrar registrar, string selfClassName, string functionName, Func<TSelf?, T0?, TReturn> body) where TSelf : notnull where T0 : notnull where TReturn : notnull

Parameters

registrar IPapyrusFunctionRegistrar
selfClassName string
functionName string
body Func<TSelf, T0, TReturn>

Type Parameters

TSelf
T0
TReturn

Remarks

The receiver is the delegate's first parameter, and counts against neither the argument indices nor the game's limit of eleven arguments. A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.

Exceptions

ArgumentNullException

selfClassName, functionName, or body is null.

ArgumentException

selfClassName or functionName is empty, or TSelf is not a form view.

TypeInitializationException

Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.

InvalidOperationException

The function was not registered. The message names the reason.

RegisterInstance<TSelf, T0, T1, T2>(IPapyrusFunctionRegistrar, string, string, Action<TSelf?, T0?, T1?, T2?>)

Registers the implementation of a native instance (non-global) function.

public static void RegisterInstance<TSelf, T0, T1, T2>(this IPapyrusFunctionRegistrar registrar, string selfClassName, string functionName, Action<TSelf?, T0?, T1?, T2?> body)

Parameters

registrar IPapyrusFunctionRegistrar
selfClassName string
functionName string
body Action<TSelf, T0, T1, T2>

Type Parameters

TSelf
T0
T1
T2

Remarks

The receiver is the delegate's first parameter, and counts against neither the argument indices nor the game's limit of eleven arguments. A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.

Exceptions

ArgumentNullException

selfClassName, functionName, or body is null.

ArgumentException

selfClassName or functionName is empty, or TSelf is not a form view.

TypeInitializationException

Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.

InvalidOperationException

The function was not registered. The message names the reason.

RegisterInstance<TSelf, T0, T1, TReturn>(IPapyrusFunctionRegistrar, string, string, Func<TSelf?, T0?, T1?, TReturn>)

Registers the implementation of a native instance (non-global) function.

public static void RegisterInstance<TSelf, T0, T1, TReturn>(this IPapyrusFunctionRegistrar registrar, string selfClassName, string functionName, Func<TSelf?, T0?, T1?, TReturn> body)

Parameters

registrar IPapyrusFunctionRegistrar
selfClassName string
functionName string
body Func<TSelf, T0, T1, TReturn>

Type Parameters

TSelf
T0
T1
TReturn

Remarks

The receiver is the delegate's first parameter, and counts against neither the argument indices nor the game's limit of eleven arguments. A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.

Exceptions

ArgumentNullException

selfClassName, functionName, or body is null.

ArgumentException

selfClassName or functionName is empty, or TSelf is not a form view.

TypeInitializationException

Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.

InvalidOperationException

The function was not registered. The message names the reason.

RegisterInstance<TSelf, T0, T1, T2, T3>(IPapyrusFunctionRegistrar, string, string, Action<TSelf?, T0?, T1?, T2?, T3?>)

Registers the implementation of a native instance (non-global) function.

public static void RegisterInstance<TSelf, T0, T1, T2, T3>(this IPapyrusFunctionRegistrar registrar, string selfClassName, string functionName, Action<TSelf?, T0?, T1?, T2?, T3?> body)

Parameters

registrar IPapyrusFunctionRegistrar
selfClassName string
functionName string
body Action<TSelf, T0, T1, T2, T3>

Type Parameters

TSelf
T0
T1
T2
T3

Remarks

The receiver is the delegate's first parameter, and counts against neither the argument indices nor the game's limit of eleven arguments. A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.

Exceptions

ArgumentNullException

selfClassName, functionName, or body is null.

ArgumentException

selfClassName or functionName is empty, or TSelf is not a form view.

TypeInitializationException

Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.

InvalidOperationException

The function was not registered. The message names the reason.

RegisterInstance<TSelf, T0, T1, T2, TReturn>(IPapyrusFunctionRegistrar, string, string, Func<TSelf?, T0?, T1?, T2?, TReturn>)

Registers the implementation of a native instance (non-global) function.

public static void RegisterInstance<TSelf, T0, T1, T2, TReturn>(this IPapyrusFunctionRegistrar registrar, string selfClassName, string functionName, Func<TSelf?, T0?, T1?, T2?, TReturn> body)

Parameters

registrar IPapyrusFunctionRegistrar
selfClassName string
functionName string
body Func<TSelf, T0, T1, T2, TReturn>

Type Parameters

TSelf
T0
T1
T2
TReturn

Remarks

The receiver is the delegate's first parameter, and counts against neither the argument indices nor the game's limit of eleven arguments. A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.

Exceptions

ArgumentNullException

selfClassName, functionName, or body is null.

ArgumentException

selfClassName or functionName is empty, or TSelf is not a form view.

TypeInitializationException

Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.

InvalidOperationException

The function was not registered. The message names the reason.

RegisterInstance<TSelf, T0, T1, T2, T3, T4>(IPapyrusFunctionRegistrar, string, string, Action<TSelf?, T0?, T1?, T2?, T3?, T4?>)

Registers the implementation of a native instance (non-global) function.

public static void RegisterInstance<TSelf, T0, T1, T2, T3, T4>(this IPapyrusFunctionRegistrar registrar, string selfClassName, string functionName, Action<TSelf?, T0?, T1?, T2?, T3?, T4?> body)

Parameters

registrar IPapyrusFunctionRegistrar
selfClassName string
functionName string
body Action<TSelf, T0, T1, T2, T3, T4>

Type Parameters

TSelf
T0
T1
T2
T3
T4

Remarks

The receiver is the delegate's first parameter, and counts against neither the argument indices nor the game's limit of eleven arguments. A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.

Exceptions

ArgumentNullException

selfClassName, functionName, or body is null.

ArgumentException

selfClassName or functionName is empty, or TSelf is not a form view.

TypeInitializationException

Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.

InvalidOperationException

The function was not registered. The message names the reason.

RegisterInstance<TSelf, T0, T1, T2, T3, TReturn>(IPapyrusFunctionRegistrar, string, string, Func<TSelf?, T0?, T1?, T2?, T3?, TReturn>)

Registers the implementation of a native instance (non-global) function.

public static void RegisterInstance<TSelf, T0, T1, T2, T3, TReturn>(this IPapyrusFunctionRegistrar registrar, string selfClassName, string functionName, Func<TSelf?, T0?, T1?, T2?, T3?, TReturn> body)

Parameters

registrar IPapyrusFunctionRegistrar
selfClassName string
functionName string
body Func<TSelf, T0, T1, T2, T3, TReturn>

Type Parameters

TSelf
T0
T1
T2
T3
TReturn

Remarks

The receiver is the delegate's first parameter, and counts against neither the argument indices nor the game's limit of eleven arguments. A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.

Exceptions

ArgumentNullException

selfClassName, functionName, or body is null.

ArgumentException

selfClassName or functionName is empty, or TSelf is not a form view.

TypeInitializationException

Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.

InvalidOperationException

The function was not registered. The message names the reason.

RegisterInstance<TSelf, T0, T1, T2, T3, T4, T5>(IPapyrusFunctionRegistrar, string, string, Action<TSelf?, T0?, T1?, T2?, T3?, T4?, T5?>)

Registers the implementation of a native instance (non-global) function.

public static void RegisterInstance<TSelf, T0, T1, T2, T3, T4, T5>(this IPapyrusFunctionRegistrar registrar, string selfClassName, string functionName, Action<TSelf?, T0?, T1?, T2?, T3?, T4?, T5?> body)

Parameters

registrar IPapyrusFunctionRegistrar
selfClassName string
functionName string
body Action<TSelf, T0, T1, T2, T3, T4, T5>

Type Parameters

TSelf
T0
T1
T2
T3
T4
T5

Remarks

The receiver is the delegate's first parameter, and counts against neither the argument indices nor the game's limit of eleven arguments. A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.

Exceptions

ArgumentNullException

selfClassName, functionName, or body is null.

ArgumentException

selfClassName or functionName is empty, or TSelf is not a form view.

TypeInitializationException

Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.

InvalidOperationException

The function was not registered. The message names the reason.

RegisterInstance<TSelf, T0, T1, T2, T3, T4, TReturn>(IPapyrusFunctionRegistrar, string, string, Func<TSelf?, T0?, T1?, T2?, T3?, T4?, TReturn>)

Registers the implementation of a native instance (non-global) function.

public static void RegisterInstance<TSelf, T0, T1, T2, T3, T4, TReturn>(this IPapyrusFunctionRegistrar registrar, string selfClassName, string functionName, Func<TSelf?, T0?, T1?, T2?, T3?, T4?, TReturn> body)

Parameters

registrar IPapyrusFunctionRegistrar
selfClassName string
functionName string
body Func<TSelf, T0, T1, T2, T3, T4, TReturn>

Type Parameters

TSelf
T0
T1
T2
T3
T4
TReturn

Remarks

The receiver is the delegate's first parameter, and counts against neither the argument indices nor the game's limit of eleven arguments. A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.

Exceptions

ArgumentNullException

selfClassName, functionName, or body is null.

ArgumentException

selfClassName or functionName is empty, or TSelf is not a form view.

TypeInitializationException

Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.

InvalidOperationException

The function was not registered. The message names the reason.

RegisterInstance<TSelf, T0, T1, T2, T3, T4, T5, T6>(IPapyrusFunctionRegistrar, string, string, Action<TSelf?, T0?, T1?, T2?, T3?, T4?, T5?, T6?>)

Registers the implementation of a native instance (non-global) function.

public static void RegisterInstance<TSelf, T0, T1, T2, T3, T4, T5, T6>(this IPapyrusFunctionRegistrar registrar, string selfClassName, string functionName, Action<TSelf?, T0?, T1?, T2?, T3?, T4?, T5?, T6?> body)

Parameters

registrar IPapyrusFunctionRegistrar
selfClassName string
functionName string
body Action<TSelf, T0, T1, T2, T3, T4, T5, T6>

Type Parameters

TSelf
T0
T1
T2
T3
T4
T5
T6

Remarks

The receiver is the delegate's first parameter, and counts against neither the argument indices nor the game's limit of eleven arguments. A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.

Exceptions

ArgumentNullException

selfClassName, functionName, or body is null.

ArgumentException

selfClassName or functionName is empty, or TSelf is not a form view.

TypeInitializationException

Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.

InvalidOperationException

The function was not registered. The message names the reason.

RegisterInstance<TSelf, T0, T1, T2, T3, T4, T5, TReturn>(IPapyrusFunctionRegistrar, string, string, Func<TSelf?, T0?, T1?, T2?, T3?, T4?, T5?, TReturn>)

Registers the implementation of a native instance (non-global) function.

public static void RegisterInstance<TSelf, T0, T1, T2, T3, T4, T5, TReturn>(this IPapyrusFunctionRegistrar registrar, string selfClassName, string functionName, Func<TSelf?, T0?, T1?, T2?, T3?, T4?, T5?, TReturn> body)

Parameters

registrar IPapyrusFunctionRegistrar
selfClassName string
functionName string
body Func<TSelf, T0, T1, T2, T3, T4, T5, TReturn>

Type Parameters

TSelf
T0
T1
T2
T3
T4
T5
TReturn

Remarks

The receiver is the delegate's first parameter, and counts against neither the argument indices nor the game's limit of eleven arguments. A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.

Exceptions

ArgumentNullException

selfClassName, functionName, or body is null.

ArgumentException

selfClassName or functionName is empty, or TSelf is not a form view.

TypeInitializationException

Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.

InvalidOperationException

The function was not registered. The message names the reason.

RegisterInstance<TSelf, T0, T1, T2, T3, T4, T5, T6, T7>(IPapyrusFunctionRegistrar, string, string, Action<TSelf?, T0?, T1?, T2?, T3?, T4?, T5?, T6?, T7?>)

Registers the implementation of a native instance (non-global) function.

public static void RegisterInstance<TSelf, T0, T1, T2, T3, T4, T5, T6, T7>(this IPapyrusFunctionRegistrar registrar, string selfClassName, string functionName, Action<TSelf?, T0?, T1?, T2?, T3?, T4?, T5?, T6?, T7?> body)

Parameters

registrar IPapyrusFunctionRegistrar
selfClassName string
functionName string
body Action<TSelf, T0, T1, T2, T3, T4, T5, T6, T7>

Type Parameters

TSelf
T0
T1
T2
T3
T4
T5
T6
T7

Remarks

The receiver is the delegate's first parameter, and counts against neither the argument indices nor the game's limit of eleven arguments. A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.

Exceptions

ArgumentNullException

selfClassName, functionName, or body is null.

ArgumentException

selfClassName or functionName is empty, or TSelf is not a form view.

TypeInitializationException

Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.

InvalidOperationException

The function was not registered. The message names the reason.

RegisterInstance<TSelf, T0, T1, T2, T3, T4, T5, T6, TReturn>(IPapyrusFunctionRegistrar, string, string, Func<TSelf?, T0?, T1?, T2?, T3?, T4?, T5?, T6?, TReturn>)

Registers the implementation of a native instance (non-global) function.

public static void RegisterInstance<TSelf, T0, T1, T2, T3, T4, T5, T6, TReturn>(this IPapyrusFunctionRegistrar registrar, string selfClassName, string functionName, Func<TSelf?, T0?, T1?, T2?, T3?, T4?, T5?, T6?, TReturn> body)

Parameters

registrar IPapyrusFunctionRegistrar
selfClassName string
functionName string
body Func<TSelf, T0, T1, T2, T3, T4, T5, T6, TReturn>

Type Parameters

TSelf
T0
T1
T2
T3
T4
T5
T6
TReturn

Remarks

The receiver is the delegate's first parameter, and counts against neither the argument indices nor the game's limit of eleven arguments. A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.

Exceptions

ArgumentNullException

selfClassName, functionName, or body is null.

ArgumentException

selfClassName or functionName is empty, or TSelf is not a form view.

TypeInitializationException

Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.

InvalidOperationException

The function was not registered. The message names the reason.

RegisterStatic(IPapyrusFunctionRegistrar, string, string, Action)

Registers the implementation of a native static (global) function.

public static void RegisterStatic(this IPapyrusFunctionRegistrar registrar, string className, string functionName, Action body)

Parameters

registrar IPapyrusFunctionRegistrar
className string
functionName string
body Action

Remarks

A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.

Exceptions

ArgumentNullException

className, functionName, or body is null.

ArgumentException

className or functionName is empty.

TypeInitializationException

Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.

InvalidOperationException

The function was not registered. The message names the reason.

RegisterStatic<T0>(IPapyrusFunctionRegistrar, string, string, Action<T0?>)

Registers the implementation of a native static (global) function.

public static void RegisterStatic<T0>(this IPapyrusFunctionRegistrar registrar, string className, string functionName, Action<T0?> body) where T0 : notnull

Parameters

registrar IPapyrusFunctionRegistrar
className string
functionName string
body Action<T0>

Type Parameters

T0

Remarks

A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.

Exceptions

ArgumentNullException

className, functionName, or body is null.

ArgumentException

className or functionName is empty.

TypeInitializationException

Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.

InvalidOperationException

The function was not registered. The message names the reason.

RegisterStatic<TReturn>(IPapyrusFunctionRegistrar, string, string, Func<TReturn>)

Registers the implementation of a native static (global) function.

public static void RegisterStatic<TReturn>(this IPapyrusFunctionRegistrar registrar, string className, string functionName, Func<TReturn> body) where TReturn : notnull

Parameters

registrar IPapyrusFunctionRegistrar
className string
functionName string
body Func<TReturn>

Type Parameters

TReturn

Remarks

A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.

Exceptions

ArgumentNullException

className, functionName, or body is null.

ArgumentException

className or functionName is empty.

TypeInitializationException

Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.

InvalidOperationException

The function was not registered. The message names the reason.

RegisterStatic<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9>(IPapyrusFunctionRegistrar, string, string, Action<T0?, T1?, T2?, T3?, T4?, T5?, T6?, T7?, T8?, T9?>)

Registers the implementation of a native static (global) function.

public static void RegisterStatic<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9>(this IPapyrusFunctionRegistrar registrar, string className, string functionName, Action<T0?, T1?, T2?, T3?, T4?, T5?, T6?, T7?, T8?, T9?> body)

Parameters

registrar IPapyrusFunctionRegistrar
className string
functionName string
body Action<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9>

Type Parameters

T0
T1
T2
T3
T4
T5
T6
T7
T8
T9

Remarks

A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.

Exceptions

ArgumentNullException

className, functionName, or body is null.

ArgumentException

className or functionName is empty.

TypeInitializationException

Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.

InvalidOperationException

The function was not registered. The message names the reason.

RegisterStatic<T0, T1, T2, T3, T4, T5, T6, T7, T8, TReturn>(IPapyrusFunctionRegistrar, string, string, Func<T0?, T1?, T2?, T3?, T4?, T5?, T6?, T7?, T8?, TReturn>)

Registers the implementation of a native static (global) function.

public static void RegisterStatic<T0, T1, T2, T3, T4, T5, T6, T7, T8, TReturn>(this IPapyrusFunctionRegistrar registrar, string className, string functionName, Func<T0?, T1?, T2?, T3?, T4?, T5?, T6?, T7?, T8?, TReturn> body)

Parameters

registrar IPapyrusFunctionRegistrar
className string
functionName string
body Func<T0, T1, T2, T3, T4, T5, T6, T7, T8, TReturn>

Type Parameters

T0
T1
T2
T3
T4
T5
T6
T7
T8
TReturn

Remarks

A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.

Exceptions

ArgumentNullException

className, functionName, or body is null.

ArgumentException

className or functionName is empty.

TypeInitializationException

Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.

InvalidOperationException

The function was not registered. The message names the reason.

RegisterStatic<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(IPapyrusFunctionRegistrar, string, string, Action<T0?, T1?, T2?, T3?, T4?, T5?, T6?, T7?, T8?, T9?, T10?>)

Registers the implementation of a native static (global) function.

public static void RegisterStatic<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(this IPapyrusFunctionRegistrar registrar, string className, string functionName, Action<T0?, T1?, T2?, T3?, T4?, T5?, T6?, T7?, T8?, T9?, T10?> body)

Parameters

registrar IPapyrusFunctionRegistrar
className string
functionName string
body Action<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>

Type Parameters

T0
T1
T2
T3
T4
T5
T6
T7
T8
T9
T10

Remarks

A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.

Exceptions

ArgumentNullException

className, functionName, or body is null.

ArgumentException

className or functionName is empty.

TypeInitializationException

Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.

InvalidOperationException

The function was not registered. The message names the reason.

RegisterStatic<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, TReturn>(IPapyrusFunctionRegistrar, string, string, Func<T0?, T1?, T2?, T3?, T4?, T5?, T6?, T7?, T8?, T9?, TReturn>)

Registers the implementation of a native static (global) function.

public static void RegisterStatic<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, TReturn>(this IPapyrusFunctionRegistrar registrar, string className, string functionName, Func<T0?, T1?, T2?, T3?, T4?, T5?, T6?, T7?, T8?, T9?, TReturn> body)

Parameters

registrar IPapyrusFunctionRegistrar
className string
functionName string
body Func<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, TReturn>

Type Parameters

T0
T1
T2
T3
T4
T5
T6
T7
T8
T9
TReturn

Remarks

A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.

Exceptions

ArgumentNullException

className, functionName, or body is null.

ArgumentException

className or functionName is empty.

TypeInitializationException

Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.

InvalidOperationException

The function was not registered. The message names the reason.

RegisterStatic<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TReturn>(IPapyrusFunctionRegistrar, string, string, Func<T0?, T1?, T2?, T3?, T4?, T5?, T6?, T7?, T8?, T9?, T10?, TReturn>)

Registers the implementation of a native static (global) function.

public static void RegisterStatic<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TReturn>(this IPapyrusFunctionRegistrar registrar, string className, string functionName, Func<T0?, T1?, T2?, T3?, T4?, T5?, T6?, T7?, T8?, T9?, T10?, TReturn> body)

Parameters

registrar IPapyrusFunctionRegistrar
className string
functionName string
body Func<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TReturn>

Type Parameters

T0
T1
T2
T3
T4
T5
T6
T7
T8
T9
T10
TReturn

Remarks

A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.

Exceptions

ArgumentNullException

className, functionName, or body is null.

ArgumentException

className or functionName is empty.

TypeInitializationException

Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.

InvalidOperationException

The function was not registered. The message names the reason.

RegisterStatic<T0, T1>(IPapyrusFunctionRegistrar, string, string, Action<T0?, T1?>)

Registers the implementation of a native static (global) function.

public static void RegisterStatic<T0, T1>(this IPapyrusFunctionRegistrar registrar, string className, string functionName, Action<T0?, T1?> body) where T0 : notnull where T1 : notnull

Parameters

registrar IPapyrusFunctionRegistrar
className string
functionName string
body Action<T0, T1>

Type Parameters

T0
T1

Remarks

A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.

Exceptions

ArgumentNullException

className, functionName, or body is null.

ArgumentException

className or functionName is empty.

TypeInitializationException

Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.

InvalidOperationException

The function was not registered. The message names the reason.

RegisterStatic<T0, TReturn>(IPapyrusFunctionRegistrar, string, string, Func<T0?, TReturn>)

Registers the implementation of a native static (global) function.

public static void RegisterStatic<T0, TReturn>(this IPapyrusFunctionRegistrar registrar, string className, string functionName, Func<T0?, TReturn> body) where T0 : notnull where TReturn : notnull

Parameters

registrar IPapyrusFunctionRegistrar
className string
functionName string
body Func<T0, TReturn>

Type Parameters

T0
TReturn

Remarks

A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.

Exceptions

ArgumentNullException

className, functionName, or body is null.

ArgumentException

className or functionName is empty.

TypeInitializationException

Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.

InvalidOperationException

The function was not registered. The message names the reason.

RegisterStatic<T0, T1, T2>(IPapyrusFunctionRegistrar, string, string, Action<T0?, T1?, T2?>)

Registers the implementation of a native static (global) function.

public static void RegisterStatic<T0, T1, T2>(this IPapyrusFunctionRegistrar registrar, string className, string functionName, Action<T0?, T1?, T2?> body) where T0 : notnull where T1 : notnull where T2 : notnull

Parameters

registrar IPapyrusFunctionRegistrar
className string
functionName string
body Action<T0, T1, T2>

Type Parameters

T0
T1
T2

Remarks

A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.

Exceptions

ArgumentNullException

className, functionName, or body is null.

ArgumentException

className or functionName is empty.

TypeInitializationException

Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.

InvalidOperationException

The function was not registered. The message names the reason.

RegisterStatic<T0, T1, TReturn>(IPapyrusFunctionRegistrar, string, string, Func<T0?, T1?, TReturn>)

Registers the implementation of a native static (global) function.

public static void RegisterStatic<T0, T1, TReturn>(this IPapyrusFunctionRegistrar registrar, string className, string functionName, Func<T0?, T1?, TReturn> body) where T0 : notnull where T1 : notnull where TReturn : notnull

Parameters

registrar IPapyrusFunctionRegistrar
className string
functionName string
body Func<T0, T1, TReturn>

Type Parameters

T0
T1
TReturn

Remarks

A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.

Exceptions

ArgumentNullException

className, functionName, or body is null.

ArgumentException

className or functionName is empty.

TypeInitializationException

Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.

InvalidOperationException

The function was not registered. The message names the reason.

RegisterStatic<T0, T1, T2, T3>(IPapyrusFunctionRegistrar, string, string, Action<T0?, T1?, T2?, T3?>)

Registers the implementation of a native static (global) function.

public static void RegisterStatic<T0, T1, T2, T3>(this IPapyrusFunctionRegistrar registrar, string className, string functionName, Action<T0?, T1?, T2?, T3?> body)

Parameters

registrar IPapyrusFunctionRegistrar
className string
functionName string
body Action<T0, T1, T2, T3>

Type Parameters

T0
T1
T2
T3

Remarks

A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.

Exceptions

ArgumentNullException

className, functionName, or body is null.

ArgumentException

className or functionName is empty.

TypeInitializationException

Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.

InvalidOperationException

The function was not registered. The message names the reason.

RegisterStatic<T0, T1, T2, TReturn>(IPapyrusFunctionRegistrar, string, string, Func<T0?, T1?, T2?, TReturn>)

Registers the implementation of a native static (global) function.

public static void RegisterStatic<T0, T1, T2, TReturn>(this IPapyrusFunctionRegistrar registrar, string className, string functionName, Func<T0?, T1?, T2?, TReturn> body)

Parameters

registrar IPapyrusFunctionRegistrar
className string
functionName string
body Func<T0, T1, T2, TReturn>

Type Parameters

T0
T1
T2
TReturn

Remarks

A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.

Exceptions

ArgumentNullException

className, functionName, or body is null.

ArgumentException

className or functionName is empty.

TypeInitializationException

Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.

InvalidOperationException

The function was not registered. The message names the reason.

RegisterStatic<T0, T1, T2, T3, T4>(IPapyrusFunctionRegistrar, string, string, Action<T0?, T1?, T2?, T3?, T4?>)

Registers the implementation of a native static (global) function.

public static void RegisterStatic<T0, T1, T2, T3, T4>(this IPapyrusFunctionRegistrar registrar, string className, string functionName, Action<T0?, T1?, T2?, T3?, T4?> body)

Parameters

registrar IPapyrusFunctionRegistrar
className string
functionName string
body Action<T0, T1, T2, T3, T4>

Type Parameters

T0
T1
T2
T3
T4

Remarks

A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.

Exceptions

ArgumentNullException

className, functionName, or body is null.

ArgumentException

className or functionName is empty.

TypeInitializationException

Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.

InvalidOperationException

The function was not registered. The message names the reason.

RegisterStatic<T0, T1, T2, T3, TReturn>(IPapyrusFunctionRegistrar, string, string, Func<T0?, T1?, T2?, T3?, TReturn>)

Registers the implementation of a native static (global) function.

public static void RegisterStatic<T0, T1, T2, T3, TReturn>(this IPapyrusFunctionRegistrar registrar, string className, string functionName, Func<T0?, T1?, T2?, T3?, TReturn> body)

Parameters

registrar IPapyrusFunctionRegistrar
className string
functionName string
body Func<T0, T1, T2, T3, TReturn>

Type Parameters

T0
T1
T2
T3
TReturn

Remarks

A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.

Exceptions

ArgumentNullException

className, functionName, or body is null.

ArgumentException

className or functionName is empty.

TypeInitializationException

Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.

InvalidOperationException

The function was not registered. The message names the reason.

RegisterStatic<T0, T1, T2, T3, T4, T5>(IPapyrusFunctionRegistrar, string, string, Action<T0?, T1?, T2?, T3?, T4?, T5?>)

Registers the implementation of a native static (global) function.

public static void RegisterStatic<T0, T1, T2, T3, T4, T5>(this IPapyrusFunctionRegistrar registrar, string className, string functionName, Action<T0?, T1?, T2?, T3?, T4?, T5?> body)

Parameters

registrar IPapyrusFunctionRegistrar
className string
functionName string
body Action<T0, T1, T2, T3, T4, T5>

Type Parameters

T0
T1
T2
T3
T4
T5

Remarks

A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.

Exceptions

ArgumentNullException

className, functionName, or body is null.

ArgumentException

className or functionName is empty.

TypeInitializationException

Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.

InvalidOperationException

The function was not registered. The message names the reason.

RegisterStatic<T0, T1, T2, T3, T4, TReturn>(IPapyrusFunctionRegistrar, string, string, Func<T0?, T1?, T2?, T3?, T4?, TReturn>)

Registers the implementation of a native static (global) function.

public static void RegisterStatic<T0, T1, T2, T3, T4, TReturn>(this IPapyrusFunctionRegistrar registrar, string className, string functionName, Func<T0?, T1?, T2?, T3?, T4?, TReturn> body)

Parameters

registrar IPapyrusFunctionRegistrar
className string
functionName string
body Func<T0, T1, T2, T3, T4, TReturn>

Type Parameters

T0
T1
T2
T3
T4
TReturn

Remarks

A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.

Exceptions

ArgumentNullException

className, functionName, or body is null.

ArgumentException

className or functionName is empty.

TypeInitializationException

Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.

InvalidOperationException

The function was not registered. The message names the reason.

RegisterStatic<T0, T1, T2, T3, T4, T5, T6>(IPapyrusFunctionRegistrar, string, string, Action<T0?, T1?, T2?, T3?, T4?, T5?, T6?>)

Registers the implementation of a native static (global) function.

public static void RegisterStatic<T0, T1, T2, T3, T4, T5, T6>(this IPapyrusFunctionRegistrar registrar, string className, string functionName, Action<T0?, T1?, T2?, T3?, T4?, T5?, T6?> body)

Parameters

registrar IPapyrusFunctionRegistrar
className string
functionName string
body Action<T0, T1, T2, T3, T4, T5, T6>

Type Parameters

T0
T1
T2
T3
T4
T5
T6

Remarks

A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.

Exceptions

ArgumentNullException

className, functionName, or body is null.

ArgumentException

className or functionName is empty.

TypeInitializationException

Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.

InvalidOperationException

The function was not registered. The message names the reason.

RegisterStatic<T0, T1, T2, T3, T4, T5, TReturn>(IPapyrusFunctionRegistrar, string, string, Func<T0?, T1?, T2?, T3?, T4?, T5?, TReturn>)

Registers the implementation of a native static (global) function.

public static void RegisterStatic<T0, T1, T2, T3, T4, T5, TReturn>(this IPapyrusFunctionRegistrar registrar, string className, string functionName, Func<T0?, T1?, T2?, T3?, T4?, T5?, TReturn> body)

Parameters

registrar IPapyrusFunctionRegistrar
className string
functionName string
body Func<T0, T1, T2, T3, T4, T5, TReturn>

Type Parameters

T0
T1
T2
T3
T4
T5
TReturn

Remarks

A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.

Exceptions

ArgumentNullException

className, functionName, or body is null.

ArgumentException

className or functionName is empty.

TypeInitializationException

Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.

InvalidOperationException

The function was not registered. The message names the reason.

RegisterStatic<T0, T1, T2, T3, T4, T5, T6, T7>(IPapyrusFunctionRegistrar, string, string, Action<T0?, T1?, T2?, T3?, T4?, T5?, T6?, T7?>)

Registers the implementation of a native static (global) function.

public static void RegisterStatic<T0, T1, T2, T3, T4, T5, T6, T7>(this IPapyrusFunctionRegistrar registrar, string className, string functionName, Action<T0?, T1?, T2?, T3?, T4?, T5?, T6?, T7?> body)

Parameters

registrar IPapyrusFunctionRegistrar
className string
functionName string
body Action<T0, T1, T2, T3, T4, T5, T6, T7>

Type Parameters

T0
T1
T2
T3
T4
T5
T6
T7

Remarks

A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.

Exceptions

ArgumentNullException

className, functionName, or body is null.

ArgumentException

className or functionName is empty.

TypeInitializationException

Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.

InvalidOperationException

The function was not registered. The message names the reason.

RegisterStatic<T0, T1, T2, T3, T4, T5, T6, TReturn>(IPapyrusFunctionRegistrar, string, string, Func<T0?, T1?, T2?, T3?, T4?, T5?, T6?, TReturn>)

Registers the implementation of a native static (global) function.

public static void RegisterStatic<T0, T1, T2, T3, T4, T5, T6, TReturn>(this IPapyrusFunctionRegistrar registrar, string className, string functionName, Func<T0?, T1?, T2?, T3?, T4?, T5?, T6?, TReturn> body)

Parameters

registrar IPapyrusFunctionRegistrar
className string
functionName string
body Func<T0, T1, T2, T3, T4, T5, T6, TReturn>

Type Parameters

T0
T1
T2
T3
T4
T5
T6
TReturn

Remarks

A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.

Exceptions

ArgumentNullException

className, functionName, or body is null.

ArgumentException

className or functionName is empty.

TypeInitializationException

Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.

InvalidOperationException

The function was not registered. The message names the reason.

RegisterStatic<T0, T1, T2, T3, T4, T5, T6, T7, T8>(IPapyrusFunctionRegistrar, string, string, Action<T0?, T1?, T2?, T3?, T4?, T5?, T6?, T7?, T8?>)

Registers the implementation of a native static (global) function.

public static void RegisterStatic<T0, T1, T2, T3, T4, T5, T6, T7, T8>(this IPapyrusFunctionRegistrar registrar, string className, string functionName, Action<T0?, T1?, T2?, T3?, T4?, T5?, T6?, T7?, T8?> body)

Parameters

registrar IPapyrusFunctionRegistrar
className string
functionName string
body Action<T0, T1, T2, T3, T4, T5, T6, T7, T8>

Type Parameters

T0
T1
T2
T3
T4
T5
T6
T7
T8

Remarks

A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.

Exceptions

ArgumentNullException

className, functionName, or body is null.

ArgumentException

className or functionName is empty.

TypeInitializationException

Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.

InvalidOperationException

The function was not registered. The message names the reason.

RegisterStatic<T0, T1, T2, T3, T4, T5, T6, T7, TReturn>(IPapyrusFunctionRegistrar, string, string, Func<T0?, T1?, T2?, T3?, T4?, T5?, T6?, T7?, TReturn>)

Registers the implementation of a native static (global) function.

public static void RegisterStatic<T0, T1, T2, T3, T4, T5, T6, T7, TReturn>(this IPapyrusFunctionRegistrar registrar, string className, string functionName, Func<T0?, T1?, T2?, T3?, T4?, T5?, T6?, T7?, TReturn> body)

Parameters

registrar IPapyrusFunctionRegistrar
className string
functionName string
body Func<T0, T1, T2, T3, T4, T5, T6, T7, TReturn>

Type Parameters

T0
T1
T2
T3
T4
T5
T6
T7
TReturn

Remarks

A lambda whose body is an expression with a value binds the overload that registers a return type, so a function declaring no return is registered with a lambda whose body is a block.

Exceptions

ArgumentNullException

className, functionName, or body is null.

ArgumentException

className or functionName is empty.

TypeInitializationException

Papyrus has no type for a type argument, wrapping the NotSupportedException that names it.

InvalidOperationException

The function was not registered. The message names the reason.