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