Skip to content

JSPropertyDescriptorList<TDerived,TObject>.AddMethod method (1 of 7)

Adds a method with a void no-args callback.

C#
public TDerived AddMethod(string name, Action callback, 
    JSPropertyAttributes attributes = JSPropertyAttributes.DefaultMethod)

See Also


JSPropertyDescriptorList<TDerived,TObject>.AddMethod method (2 of 7)

Adds a method with a void no-args callback obtained from the wrapped object.

C#
public TDerived AddMethod(string name, Func<TObject, Action> getCallback, 
    JSPropertyAttributes attributes = JSPropertyAttributes.DefaultMethod)

See Also


JSPropertyDescriptorList<TDerived,TObject>.AddMethod method (3 of 7)

C#
public TDerived AddMethod(string name, JSCallbackDescriptor callbackDescriptor, 
    JSPropertyAttributes attributes = JSPropertyAttributes.DefaultMethod)

See Also


JSPropertyDescriptorList<TDerived,TObject>.AddMethod method (4 of 7)

Adds a method with a void callback obtained from the wrapped object.

C#
public TDerived AddMethod(string name, Func<TObject, JSActionCallback> getCallback, 
    JSPropertyAttributes attributes = JSPropertyAttributes.DefaultMethod, object? data = null)

See Also


JSPropertyDescriptorList<TDerived,TObject>.AddMethod method (5 of 7)

Adds a method with a callback obtained from the wrapped object.

C#
public TDerived AddMethod(string name, Func<TObject, JSCallback> getCallback, 
    JSPropertyAttributes attributes = JSPropertyAttributes.DefaultMethod, object? data = null)

See Also


JSPropertyDescriptorList<TDerived,TObject>.AddMethod method (6 of 7)

Adds a method with a void callback.

C#
public TDerived AddMethod(string name, JSActionCallback callback, 
    JSPropertyAttributes attributes = JSPropertyAttributes.DefaultMethod, object? data = null)

See Also


JSPropertyDescriptorList<TDerived,TObject>.AddMethod method (7 of 7)

Adds a method with a callback.

C#
public TDerived AddMethod(string name, JSCallback callback, 
    JSPropertyAttributes attributes = JSPropertyAttributes.DefaultMethod, object? data = null)

See Also

Released under the MIT license