EnumerationExtensions.CreateEnumerationLiteral - метод
Создает новый объект IEnumerationLiteral в перечислении
Пространство имен: Microsoft.VisualStudio.ArchitectureTools.Extensibility.Uml
Сборка: Microsoft.VisualStudio.ArchitectureTools.Extensibility (в Microsoft.VisualStudio.ArchitectureTools.Extensibility.dll)
Синтаксис
'Декларация
<ExtensionAttribute> _
Public Shared Function CreateEnumerationLiteral ( _
parent As IEnumeration _
) As IEnumerationLiteral
public static IEnumerationLiteral CreateEnumerationLiteral(
this IEnumeration parent
)
[ExtensionAttribute]
public:
static IEnumerationLiteral^ CreateEnumerationLiteral(
IEnumeration^ parent
)
static member CreateEnumerationLiteral :
parent:IEnumeration -> IEnumerationLiteral
public static function CreateEnumerationLiteral(
parent : IEnumeration
) : IEnumerationLiteral
Параметры
- parent
Тип: Microsoft.VisualStudio.Uml.Classes.IEnumeration
Возвращаемое значение
Тип: Microsoft.VisualStudio.Uml.Classes.IEnumerationLiteral
Примечание об использовании
В Visual Basic и C# этот метод можно вызывать как метод экземпляра для любого объекта типа IEnumeration. При вызове метода для экземпляра следует опускать первый параметр. Дополнительные сведения см. в разделе Методы расширения (Visual Basic) или Методы расширения (Руководство по программированию в C#).
Безопасность платформы .NET Framework
- Полное доверие для непосредственно вызывающего метода. Этот член не может быть использован частично доверенным кодом. Дополнительные сведения см. в разделе Использование библиотек из не вполне надежного кода.
См. также
Ссылки
Microsoft.VisualStudio.ArchitectureTools.Extensibility.Uml - пространство имен