IMetaDataDispenser::DefineScope Method
.NET Framework 3.5
Creates a new area in memory in which you can create new metadata.
HRESULT DefineScope (
[in] REFCLSID rclsid,
[in] DWORD dwCreateFlags,
[in] REFIID riid,
[out] IUnknown **ppIUnk
);
DefineScope creates a set of in-memory metadata tables, generates a unique GUID (module version identifier, or MVID) for the metadata, and creates an entry in the module table for the compilation unit being emitted.
You can attach attributes to the metadata scope as a whole by using the IMetaDataEmit::SetModuleProps or IMetaDataEmit::DefineCustomAttribute method, as appropriate.
Platform: See .NET Framework System Requirements.
Header: Cor.h
Library: Used as a resource in MsCorEE.dll
.NET Framework Versions: 3.5 SP1, 3.5, 3.0 SP1, 3.0, 2.0 SP1, 2.0, 1.1, 1.0