Share via


VCCodeModel.AddUsingAlias(String, Object, Object, Object, vsCMAccess) Method

Definition

Adds a using alias.

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

Parameters

Name
String

The name.

Location
Object

The location.

Type
Object

The type.

Position
Object

The position.

Access
vsCMAccess

The access.

Returns

The added item.

Attributes

Applies to