标记一个新范围的开头。
命名空间: Microsoft.ConcurrencyVisualizer.Instrumentation
程序集: Microsoft.ConcurrencyVisualizer.Markers(在 Microsoft.ConcurrencyVisualizer.Markers.dll 中)
语法
声明
Public Function EnterSpan ( _
category As Integer, _
text As String _
) As Span
public Span EnterSpan(
int category,
string text
)
public:
Span^ EnterSpan(
int category,
String^ text
)
member EnterSpan :
category:int *
text:string -> Span
public function EnterSpan(
category : int,
text : String
) : Span
参数
- category
类型:System.Int32
范围的分类。任何整数有效。
- text
类型:System.String
范围的说明。
返回值
类型:Microsoft.ConcurrencyVisualizer.Instrumentation.Span
返回 Span。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。