CallbackDefinitionCreateT(DotNetObjectReferenceT, String, Boolean) Method

Creates a new instance of the CallbackDefinition class.

Definition

Namespace: Gemstone.Web.Razor.Callbacks
Assembly: Gemstone.Web.Razor (in Gemstone.Web.Razor.dll) Version: 1.0.170 -- Release Build+b32d16e0cd614373e36528ea9dff7924975c7f87
public static CallbackDefinition Create<T>(
	DotNetObjectReference<T> reference,
	string methodName,
	bool disposeReference = false
)
where T : class

Parameters

reference  DotNetObjectReferenceT
The reference to the instance containing the method to be captured in a callback.
methodName  String
The name of the method to be captured in the callback.
disposeReference  Boolean  (Optional)
True if the callback should dispose the reference when it is disposed; otherwise false.

Type Parameters

T
The type containing the instance method to be captured in a callback.

Return Value

CallbackDefinition
The definition for the callback to be used with JavaScript.

See Also