DkmClrType.Create Method

Definition

Overloads

Create(Type)

[Required] Create a DkmClrType given an App Domain and LMR type. An LMR Type looks and behaves like a System.Type, but represents a type that exists in the process being debugged.

Location constraint: API must be called from a Monitor component (component level < 100,000).

This API was introduced in Visual Studio 14 Update 2 (DkmApiVersion.VS14Update2).

Create(DkmClrAppDomain, Type)

[Required] Create a DkmClrType given an App Domain and LMR type. An LMR Type looks and behaves like a System.Type, but represents a type that exists in the process being debugged.

Location constraint: API must be called from a Monitor component (component level < 100,000).

This API was introduced in Visual Studio 14 RTM (DkmApiVersion.VS14RTM).

Create(DkmClrModuleInstance, Int32, ReadOnlyCollection<DkmClrType>)

Create a new DkmClrType object instance.

This API was introduced in Visual Studio 12 RTM (DkmApiVersion.VS12RTM).

Create(DkmClrModuleInstance, Int32, ReadOnlyCollection<DkmClrType>, DkmClrType, UInt32, Int32, Guid)

Create a new DkmClrType object instance.

This API was introduced in Visual Studio 14 RTM (DkmApiVersion.VS14RTM).

Create(DkmClrModuleInstance, Int32, ReadOnlyCollection<DkmClrType>, DkmClrType, UInt32, Int32, Guid, DkmClrType, ReadOnlyCollection<DkmClrType>)

Create a new DkmClrType object instance.

This API was introduced in Visual Studio 14 Update 1 (DkmApiVersion.VS14Update1).

Create(Type)

[Required] Create a DkmClrType given an App Domain and LMR type. An LMR Type looks and behaves like a System.Type, but represents a type that exists in the process being debugged.

Location constraint: API must be called from a Monitor component (component level < 100,000).

This API was introduced in Visual Studio 14 Update 2 (DkmApiVersion.VS14Update2).

public:
 static Microsoft::VisualStudio::Debugger::Clr::DkmClrType ^ Create(Microsoft::VisualStudio::Debugger::Metadata::Type ^ type);
public:
 static Microsoft::VisualStudio::Debugger::Clr::DkmClrType ^ Create(Microsoft::VisualStudio::Debugger::Metadata::Type ^ type);
 static Microsoft::VisualStudio::Debugger::Clr::DkmClrType Create(Microsoft::VisualStudio::Debugger::Metadata::Type const & type);
public static Microsoft.VisualStudio.Debugger.Clr.DkmClrType Create (Microsoft.VisualStudio.Debugger.Metadata.Type type);
static member Create : Microsoft.VisualStudio.Debugger.Metadata.Type -> Microsoft.VisualStudio.Debugger.Clr.DkmClrType
Public Shared Function Create (type As Type) As DkmClrType

Parameters

type
Microsoft.VisualStudio.Debugger.Metadata.Type

[Required] LMR type

Returns

Applies to

Create(DkmClrAppDomain, Type)

[Required] Create a DkmClrType given an App Domain and LMR type. An LMR Type looks and behaves like a System.Type, but represents a type that exists in the process being debugged.

Location constraint: API must be called from a Monitor component (component level < 100,000).

This API was introduced in Visual Studio 14 RTM (DkmApiVersion.VS14RTM).

public:
 static Microsoft::VisualStudio::Debugger::Clr::DkmClrType ^ Create(Microsoft::VisualStudio::Debugger::Clr::DkmClrAppDomain ^ appDomain, Microsoft::VisualStudio::Debugger::Metadata::Type ^ type);
public static Microsoft.VisualStudio.Debugger.Clr.DkmClrType Create (Microsoft.VisualStudio.Debugger.Clr.DkmClrAppDomain appDomain, Microsoft.VisualStudio.Debugger.Metadata.Type type);
static member Create : Microsoft.VisualStudio.Debugger.Clr.DkmClrAppDomain * Microsoft.VisualStudio.Debugger.Metadata.Type -> Microsoft.VisualStudio.Debugger.Clr.DkmClrType
Public Shared Function Create (appDomain As DkmClrAppDomain, type As Type) As DkmClrType

Parameters

appDomain
DkmClrAppDomain

Unused. The app domain is implied by the type.

type
Microsoft.VisualStudio.Debugger.Metadata.Type

[Required] LMR type

Returns

Applies to

Create(DkmClrModuleInstance, Int32, ReadOnlyCollection<DkmClrType>)

Create a new DkmClrType object instance.

This API was introduced in Visual Studio 12 RTM (DkmApiVersion.VS12RTM).

public:
 static Microsoft::VisualStudio::Debugger::Clr::DkmClrType ^ Create(Microsoft::VisualStudio::Debugger::Clr::DkmClrModuleInstance ^ ModuleInstance, int Token, System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::VisualStudio::Debugger::Clr::DkmClrType ^> ^ GenericArguments);
public static Microsoft.VisualStudio.Debugger.Clr.DkmClrType Create (Microsoft.VisualStudio.Debugger.Clr.DkmClrModuleInstance ModuleInstance, int Token, System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.VisualStudio.Debugger.Clr.DkmClrType> GenericArguments);
public static Microsoft.VisualStudio.Debugger.Clr.DkmClrType Create (Microsoft.VisualStudio.Debugger.Clr.DkmClrModuleInstance ModuleInstance, int Token, System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.VisualStudio.Debugger.Clr.DkmClrType>? GenericArguments);
static member Create : Microsoft.VisualStudio.Debugger.Clr.DkmClrModuleInstance * int * System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.VisualStudio.Debugger.Clr.DkmClrType> -> Microsoft.VisualStudio.Debugger.Clr.DkmClrType
Public Shared Function Create (ModuleInstance As DkmClrModuleInstance, Token As Integer, GenericArguments As ReadOnlyCollection(Of DkmClrType)) As DkmClrType

Parameters

ModuleInstance
DkmClrModuleInstance

[In] The module the type resides in. If the type resides in a synthetic assembly, this value will be a real module in the same AppDomain.

Token
Int32

[In] The type def token of the type.

GenericArguments
ReadOnlyCollection<DkmClrType>

[In,Optional] If the type is generic, specifies the generic arguments for the type.

Returns

[Out] Result of this method call.

Applies to

Create(DkmClrModuleInstance, Int32, ReadOnlyCollection<DkmClrType>, DkmClrType, UInt32, Int32, Guid)

Create a new DkmClrType object instance.

This API was introduced in Visual Studio 14 RTM (DkmApiVersion.VS14RTM).

public:
 static Microsoft::VisualStudio::Debugger::Clr::DkmClrType ^ Create(Microsoft::VisualStudio::Debugger::Clr::DkmClrModuleInstance ^ ModuleInstance, int Token, System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::VisualStudio::Debugger::Clr::DkmClrType ^> ^ GenericArguments, Microsoft::VisualStudio::Debugger::Clr::DkmClrType ^ ElementType, System::UInt32 CorElementType, int ArrayRank, Guid SyntheticMvid);
public static Microsoft.VisualStudio.Debugger.Clr.DkmClrType Create (Microsoft.VisualStudio.Debugger.Clr.DkmClrModuleInstance ModuleInstance, int Token, System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.VisualStudio.Debugger.Clr.DkmClrType> GenericArguments, Microsoft.VisualStudio.Debugger.Clr.DkmClrType ElementType, uint CorElementType, int ArrayRank, Guid SyntheticMvid);
public static Microsoft.VisualStudio.Debugger.Clr.DkmClrType Create (Microsoft.VisualStudio.Debugger.Clr.DkmClrModuleInstance ModuleInstance, int Token, System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.VisualStudio.Debugger.Clr.DkmClrType>? GenericArguments, Microsoft.VisualStudio.Debugger.Clr.DkmClrType? ElementType, uint CorElementType, int ArrayRank, Guid SyntheticMvid);
static member Create : Microsoft.VisualStudio.Debugger.Clr.DkmClrModuleInstance * int * System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.VisualStudio.Debugger.Clr.DkmClrType> * Microsoft.VisualStudio.Debugger.Clr.DkmClrType * uint32 * int * Guid -> Microsoft.VisualStudio.Debugger.Clr.DkmClrType
Public Shared Function Create (ModuleInstance As DkmClrModuleInstance, Token As Integer, GenericArguments As ReadOnlyCollection(Of DkmClrType), ElementType As DkmClrType, CorElementType As UInteger, ArrayRank As Integer, SyntheticMvid As Guid) As DkmClrType

Parameters

ModuleInstance
DkmClrModuleInstance

[In] The module the type resides in. If the type resides in a synthetic assembly, this value will be a real module in the same AppDomain.

Token
Int32

[In] The type def token of the type.

GenericArguments
ReadOnlyCollection<DkmClrType>

[In,Optional] If the type is generic, specifies the generic arguments for the type.

ElementType
DkmClrType

[In,Optional] The type of the object encompassed or referenced by this type given the type is an array, pointer or reference. This value is null if there is no element type.

CorElementType
UInt32

[In] The CorElementType of this type.

ArrayRank
Int32

[In] The rank of the array. This value is 0 if the type is not an array.

SyntheticMvid
Guid

[In] If this type is synthetic and does not exist in the debuggee, this is the MVID of the module the type belongs to.

Returns

[Out] Result of this method call.

Applies to

Create(DkmClrModuleInstance, Int32, ReadOnlyCollection<DkmClrType>, DkmClrType, UInt32, Int32, Guid, DkmClrType, ReadOnlyCollection<DkmClrType>)

Create a new DkmClrType object instance.

This API was introduced in Visual Studio 14 Update 1 (DkmApiVersion.VS14Update1).

public:
 static Microsoft::VisualStudio::Debugger::Clr::DkmClrType ^ Create(Microsoft::VisualStudio::Debugger::Clr::DkmClrModuleInstance ^ ModuleInstance, int Token, System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::VisualStudio::Debugger::Clr::DkmClrType ^> ^ GenericArguments, Microsoft::VisualStudio::Debugger::Clr::DkmClrType ^ ElementType, System::UInt32 CorElementType, int ArrayRank, Guid SyntheticMvid, Microsoft::VisualStudio::Debugger::Clr::DkmClrType ^ FunctionPointerReturnType, System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::VisualStudio::Debugger::Clr::DkmClrType ^> ^ FunctionPointerArgumentTypes);
public static Microsoft.VisualStudio.Debugger.Clr.DkmClrType Create (Microsoft.VisualStudio.Debugger.Clr.DkmClrModuleInstance ModuleInstance, int Token, System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.VisualStudio.Debugger.Clr.DkmClrType> GenericArguments, Microsoft.VisualStudio.Debugger.Clr.DkmClrType ElementType, uint CorElementType, int ArrayRank, Guid SyntheticMvid, Microsoft.VisualStudio.Debugger.Clr.DkmClrType FunctionPointerReturnType, System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.VisualStudio.Debugger.Clr.DkmClrType> FunctionPointerArgumentTypes);
public static Microsoft.VisualStudio.Debugger.Clr.DkmClrType Create (Microsoft.VisualStudio.Debugger.Clr.DkmClrModuleInstance ModuleInstance, int Token, System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.VisualStudio.Debugger.Clr.DkmClrType>? GenericArguments, Microsoft.VisualStudio.Debugger.Clr.DkmClrType? ElementType, uint CorElementType, int ArrayRank, Guid SyntheticMvid, Microsoft.VisualStudio.Debugger.Clr.DkmClrType? FunctionPointerReturnType, System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.VisualStudio.Debugger.Clr.DkmClrType>? FunctionPointerArgumentTypes);
static member Create : Microsoft.VisualStudio.Debugger.Clr.DkmClrModuleInstance * int * System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.VisualStudio.Debugger.Clr.DkmClrType> * Microsoft.VisualStudio.Debugger.Clr.DkmClrType * uint32 * int * Guid * Microsoft.VisualStudio.Debugger.Clr.DkmClrType * System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.VisualStudio.Debugger.Clr.DkmClrType> -> Microsoft.VisualStudio.Debugger.Clr.DkmClrType
Public Shared Function Create (ModuleInstance As DkmClrModuleInstance, Token As Integer, GenericArguments As ReadOnlyCollection(Of DkmClrType), ElementType As DkmClrType, CorElementType As UInteger, ArrayRank As Integer, SyntheticMvid As Guid, FunctionPointerReturnType As DkmClrType, FunctionPointerArgumentTypes As ReadOnlyCollection(Of DkmClrType)) As DkmClrType

Parameters

ModuleInstance
DkmClrModuleInstance

[In] The module the type resides in. If the type resides in a synthetic assembly, this value will be a real module in the same AppDomain.

Token
Int32

[In] The type def token of the type.

GenericArguments
ReadOnlyCollection<DkmClrType>

[In,Optional] If the type is generic, specifies the generic arguments for the type.

ElementType
DkmClrType

[In,Optional] The type of the object encompassed or referenced by this type given the type is an array, pointer or reference. This value is null if there is no element type.

CorElementType
UInt32

[In] The CorElementType of this type.

ArrayRank
Int32

[In] The rank of the array. This value is 0 if the type is not an array.

SyntheticMvid
Guid

[In] If this type is synthetic and does not exist in the debuggee, this is the MVID of the module the type belongs to.

FunctionPointerReturnType
DkmClrType

[In,Optional] If the current type is a function pointer, specifies the return type of the function pointer.

FunctionPointerArgumentTypes
ReadOnlyCollection<DkmClrType>

[In,Optional] If the current type is a function pointer, specifies the types of the arguments.

Returns

[Out] Result of this method call.

Applies to