Export (0) Print
Expand All

IPluginExecutionContext.Depth Property

banner art

[Applies to: Microsoft Dynamics CRM 4.0]

Find the latest SDK documentation: CRM 2015 SDK

Gets the current depth of execution in the call stack.

Syntax

[Visual Basic .NET]
OverridablePublic ReadOnly Property Depth As Integer
[C#]
public virtual int Depth {get;}

Property Value

The value of this property is an Int32 type.

Remarks

This property is read only.

A plug-in can invoke a Web service call which causes another plug-in to executed, and so on. The system limits depth to a value of eight (8). After a depth of 8, an exception is thrown by the system to avoid an infinite loop.

Used for infinite loop prevention. In most cases, this property can be ignored. For more information, see CorrelationToken class.

Requirements

Namespace: Microsoft.Crm.Sdk

Assembly: Microsoft.Crm.Sdk.dll

See Also

Reference


© 2010 Microsoft Corporation. All rights reserved.


Show:
© 2015 Microsoft