This member has a SecurityCriticalAttribute attribute, which restricts it to internal use by the .NET Framework for Silverlight class library. Application code that uses this member throws a MethodAccessException.
[SECURITY CRITICAL] Initializes a new instance of the StackFrame class that corresponds to a frame above the current stack frame, and optionally captures source information.
Namespace:
System.Diagnostics
Assembly:
mscorlib (in mscorlib.dll)
Visual Basic (Declaration)
<SecurityCriticalAttribute> _
Public Sub New ( _
skipFrames As Integer, _
fNeedFileInfo As Boolean _
)
Dim skipFrames As Integer
Dim fNeedFileInfo As Boolean
Dim instance As New StackFrame(skipFrames, _
fNeedFileInfo)
[SecurityCriticalAttribute]
public StackFrame(
int skipFrames,
bool fNeedFileInfo
)
Parameters
- skipFrames
- Type: System..::.Int32
The number of frames up the stack to skip.
- fNeedFileInfo
- Type: System..::.Boolean
true to capture the file name, line number, and column number of the stack frame; otherwise, false.
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.
Reference