EnumerationLiteralExtensions.CreateSpecificationLiteralInteger 方法

在列舉常值中建立新的 ILiteralInteger 物件

命名空間:  Microsoft.VisualStudio.ArchitectureTools.Extensibility.Uml
組件:  Microsoft.VisualStudio.ArchitectureTools.Extensibility (在 Microsoft.VisualStudio.ArchitectureTools.Extensibility.dll 中)

語法

'宣告
<ExtensionAttribute> _
Public Shared Function CreateSpecificationLiteralInteger ( _
    parent As IEnumerationLiteral _
) As ILiteralInteger
public static ILiteralInteger CreateSpecificationLiteralInteger(
    this IEnumerationLiteral parent
)
[ExtensionAttribute]
public:
static ILiteralInteger^ CreateSpecificationLiteralInteger(
    IEnumerationLiteral^ parent
)
static member CreateSpecificationLiteralInteger : 
        parent:IEnumerationLiteral -> ILiteralInteger 
public static function CreateSpecificationLiteralInteger(
    parent : IEnumerationLiteral
) : ILiteralInteger

參數

傳回值

型別:Microsoft.VisualStudio.Uml.Classes.ILiteralInteger

使用注意事項

在 Visual Basic 和 C# 中,您可以在任何 IEnumerationLiteral 型別物件中呼叫這個方法以做為執行個體。使用執行個體方法語法呼叫這個方法時,請省略第一個參數。如需詳細資訊,請參閱擴充方法 (Visual Basic)擴充方法 (C# 程式設計手冊)

.NET Framework 安全性

請參閱

參考

EnumerationLiteralExtensions 類別

Microsoft.VisualStudio.ArchitectureTools.Extensibility.Uml 命名空間