Compartir a través de


VCCodeStruct.AddTypedef(String, Object, Object, vsCMAccess) Method

Definition

Adds a typedef statement to the object.

Microsoft::VisualStudio::VCCodeModel::VCCodeTypedef AddTypedef(std::wstring const & Name, winrt::Windows::Foundation::IInspectable const & Type, winrt::Windows::Foundation::IInspectable const & Position, EnvDTE::vsCMAccess Access = EnvDTE.vsCMAccess.vsCMAccessDefault);
[System.Runtime.InteropServices.DispId(594)]
public Microsoft.VisualStudio.VCCodeModel.VCCodeTypedef AddTypedef (string Name, object Type, object Position, EnvDTE.vsCMAccess Access = EnvDTE.vsCMAccess.vsCMAccessDefault);
[<System.Runtime.InteropServices.DispId(594)>]
abstract member AddTypedef : string * obj * obj * EnvDTE.vsCMAccess -> Microsoft.VisualStudio.VCCodeModel.VCCodeTypedef
Public Function AddTypedef (Name As String, Optional Type As Object, Optional Position As Object, Optional Access As vsCMAccess = EnvDTE.vsCMAccess.vsCMAccessDefault) As VCCodeTypedef

Parameters

Name
String

Required. Specifies the name of the alias.

Type
Object

Required. The type of the alias.

Position
Object

Required. Default = -1. The code element after which to add the event element. If the value is a CodeElement, then the new element is added immediately after it.Since collections begin their count at one, passing 0 indicates that the new element should be placed at the beginning of the collection. A value of -1 means the element should be placed at the end.

Access
vsCMAccess

Optional. A vsCMAccess value.

Returns

A VCCodeTypedef object.

Attributes

Applies to