This documentation is archived and is not being maintained.

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.


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

Property Value

The value of this property is an Int32 type.


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.


Namespace: Microsoft.Crm.Sdk

Assembly: Microsoft.Crm.Sdk.dll

See Also


© 2010 Microsoft Corporation. All rights reserved.