VCFileCodeModel.AddTypedef - метод
Adds a typedef statement to the object.
Пространство имен: Microsoft.VisualStudio.VCCodeModel
Сборка: Microsoft.VisualStudio.VCCodeModel (в Microsoft.VisualStudio.VCCodeModel.dll)
Синтаксис
'Декларация
Function AddTypedef ( _
Name As String, _
Type As Object, _
Position As Object, _
Access As vsCMAccess _
) As VCCodeTypedef
'Применение
Dim instance As VCFileCodeModel
Dim Name As String
Dim Type As Object
Dim Position As Object
Dim Access As vsCMAccess
Dim returnValue As VCCodeTypedef
returnValue = instance.AddTypedef(Name, _
Type, Position, Access)
VCCodeTypedef AddTypedef(
string Name,
Object Type,
Object Position,
vsCMAccess Access
)
VCCodeTypedef^ AddTypedef(
String^ Name,
Object^ Type,
Object^ Position,
vsCMAccess Access
)
function AddTypedef(
Name : String,
Type : Object,
Position : Object,
Access : vsCMAccess
) : VCCodeTypedef
Параметры
Name
Тип: System.StringRequired. Specifies the name of the alias.
Type
Тип: System.ObjectRequired. The type of the alias.
Position
Тип: System.ObjectRequired. 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.
Because 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
Тип: EnvDTE.vsCMAccessOptional. A vsCMAccess value.
Возвращаемое значение
Тип: Microsoft.VisualStudio.VCCodeModel.VCCodeTypedef
A VCCodeTypedef object.
Разрешения
- Полное доверие для непосредственно вызывающего метода. Этот член не может быть использован частично доверенным кодом. Дополнительные сведения см. в разделе Using Libraries from Partially Trusted Code.