Lưu ý
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử đăng nhập hoặc thay đổi thư mục.
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử thay đổi thư mục.
Called to initialize the code profiler whenever a new common language runtime (CLR) application is started.
Syntax
HRESULT Initialize(
[in] IUnknown *pICorProfilerInfoUnk);
Parameters
pICorProfilerInfoUnk
[in] Pointer to an IUnknown interface that the profiler must query for an ICorProfilerInfo interface pointer.
Remarks
The Initialize call is the only opportunity to enable (or disable) callbacks that are immutable. Once a callback is enabled by the Initialize call, it cannot be disabled later using ICorProfilerInfo::SetEventMask. The COR_PRF_MONITOR_IMMUTABLE value of the COR_PRF_MONITOR enumeration indicates which events are immutable.
Requirements
Platforms: See System Requirements.
Header: CorProf.idl, CorProf.h
Library: CorGuids.lib
.NET Framework Versions: Available since 2.0