DkmClrAlias.Create Method

Definition

Create a new DkmClrAlias object instance.

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

public:
 static Microsoft::VisualStudio::Debugger::Clr::DkmClrAlias ^ Create(Microsoft::VisualStudio::Debugger::Clr::DkmClrAliasKind Kind, System::String ^ Name, System::String ^ FullName, System::String ^ Type, Guid CustomTypeInfoPayloadTypeId, System::Collections::ObjectModel::ReadOnlyCollection<System::Byte> ^ CustomTypeInfoPayload);
public static Microsoft.VisualStudio.Debugger.Clr.DkmClrAlias Create (Microsoft.VisualStudio.Debugger.Clr.DkmClrAliasKind Kind, string Name, string FullName, string Type, Guid CustomTypeInfoPayloadTypeId, System.Collections.ObjectModel.ReadOnlyCollection<byte> CustomTypeInfoPayload);
static member Create : Microsoft.VisualStudio.Debugger.Clr.DkmClrAliasKind * string * string * string * Guid * System.Collections.ObjectModel.ReadOnlyCollection<byte> -> Microsoft.VisualStudio.Debugger.Clr.DkmClrAlias
Public Shared Function Create (Kind As DkmClrAliasKind, Name As String, FullName As String, Type As String, CustomTypeInfoPayloadTypeId As Guid, CustomTypeInfoPayload As ReadOnlyCollection(Of Byte)) As DkmClrAlias

Parameters

Kind
DkmClrAliasKind

[In] The kind of alias this is.

Name
String

[In] The name of this alias. This is the value displayed in the "Name" column of the variable inspection windows.

FullName
String

[In] The full name of this alias. This is the expression to evaluate if this alias is added to the Watch window.

Type
String

[In] The assembly qualified name of the runtime type of this alias.

CustomTypeInfoPayloadTypeId
Guid

[In] If this is a variable with custom type information, this is the identifier that is used to identify the compiler that generated the custom type information.

CustomTypeInfoPayload
ReadOnlyCollection<Byte>

[In] The custom type information payload used by the compiler to embed custom type information. The compiler should verify that the id stored in CustomTypeInfoPayloadTypeId matches the expected id before using this value.

Returns

[Out] Result of this method call.

Applies to