TeamFoundationTrace.MethodEntry Method (Int32, array<Object )

Trace entry into a method. This includes the method’s signature.

Namespace:  Microsoft.TeamFoundation
Assembly:  Microsoft.TeamFoundation.Common (in Microsoft.TeamFoundation.Common.dll)

Syntax

'Declaration
<ConditionalAttribute("DEBUG")> _
Public Shared Sub MethodEntry ( _
    depth As Integer, _
    ParamArray parameters As Object() _
)
[ConditionalAttribute("DEBUG")]
public static void MethodEntry(
    int depth,
    params Object[] parameters
)
[ConditionalAttribute(L"DEBUG")]
public:
static void MethodEntry(
    int depth, 
    ... array<Object^>^ parameters
)
[<ConditionalAttribute("DEBUG")>]
static member MethodEntry : 
        depth:int * 
        parameters:Object[] -> unit
public static function MethodEntry(
    depth : int, 
    ... parameters : Object[]
)

Parameters

  • depth
    Type: System.Int32

    Indicates how many frames up the stack the method signature of interest is.

  • parameters
    Type: array<System.Object[]

    The parameters if any associated with the method.

Remarks

The API traceswitch setting determines whether any trace output appears. This method is only available in DEBUG builds.

The 'depth' parameter is useful when a utility function is invoking this function and the actual method of interest is "above" the utility function.

.NET Framework Security

See Also

Reference

TeamFoundationTrace Class

MethodEntry Overload

Microsoft.TeamFoundation Namespace