TeamFoundationTrace.MethodEntry Method (Int32, array<Object )
Trace entry into a method, including the method’s signature.
Namespace: Microsoft.TeamFoundation
Assembly: Microsoft.TeamFoundation.Common (in Microsoft.TeamFoundation.Common.dll)
Syntax
‘선언
<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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.