[This is preliminary documentation and is subject to change.]

Specifies a method called before a set state operation.

Namespace:  CWR.MSCRM.Mobile.Client.BL
Assembly:  CWR.MSCRM.Mobile.Client.Sdk (in CWR.MSCRM.Mobile.Client.Sdk.dll)
Version: 4.0.0.7

Syntax

C#
public virtual PreCalloutReturnValue PreSetState(
	CalloutEntityContext entityContext,
	ref string newState,
	ref int newNumericState,
	ref int newStatus,
	ref string errorMessage
)
Visual Basic (Declaration)
Public Overridable Function PreSetState ( _
	entityContext As CalloutEntityContext, _
	ByRef newState As String, _
	ByRef newNumericState As Integer, _
	ByRef newStatus As Integer, _
	ByRef errorMessage As String _
) As PreCalloutReturnValue

Parameters

entityContext
Type: CWR.MSCRM.Mobile.Client.BL..::.CalloutEntityContext
Contains information about the entity on which the setstate operation was performed.
newState
Type: System..::.String %
Culture neutral string representation of the statecode (e.g. 'Active' or 'Inactive').
newNumericState
Type: System..::.Int32 %
Integer value of the statecode.
newStatus
Type: System..::.Int32 %
Integer value of the statuscode.
errorMessage
Type: System..::.String %
A string that contains the error message to be returned to the application.

Return Value

Returns a PreCalloutReturnValue type that specifies what action to take after this method completes.

See Also