IEnumerationLiteral 介面
列舉行別中使用者定義的資料值。
命名空間: Microsoft.VisualStudio.Uml.Classes
組件: Microsoft.VisualStudio.Uml.Interfaces (在 Microsoft.VisualStudio.Uml.Interfaces.dll 中)
'宣告
Public Interface IEnumerationLiteral _
Inherits IInstanceSpecification, IPackageableElement, INamedElement, IElement, _
IParameterableElement, IDeployedArtifact, IDeploymentTarget
public interface IEnumerationLiteral : IInstanceSpecification,
IPackageableElement, INamedElement, IElement, IParameterableElement, IDeployedArtifact,
IDeploymentTarget
public interface class IEnumerationLiteral : IInstanceSpecification,
IPackageableElement, INamedElement, IElement, IParameterableElement, IDeployedArtifact,
IDeploymentTarget
type IEnumerationLiteral =
interface
interface IInstanceSpecification
interface IPackageableElement
interface INamedElement
interface IElement
interface IParameterableElement
interface IDeployedArtifact
interface IDeploymentTarget
end
public interface IEnumerationLiteral extends IInstanceSpecification, IPackageableElement, INamedElement, IElement, IParameterableElement, IDeployedArtifact, IDeploymentTarget
IEnumerationLiteral 類型會公開下列成員。
名稱 | 描述 | |
---|---|---|
![]() |
ApplicableStereotypes | 可套用至此項目的一組造型。 (繼承自 IElement)。 |
![]() |
AppliedStereotypes | 每個 IStereotypeInstance 都表示已將造型套用至此元素。 (繼承自 IElement)。 |
![]() |
Classifiers | 取得執行個體所屬的分類器。 (繼承自 IInstanceSpecification)。 |
![]() |
ClientDependencies | 取得此元素為用戶端的相依性關聯性。 (繼承自 INamedElement)。 |
![]() |
DeployedElements | 取得已部署至此目標的元素。 (繼承自 IDeploymentTarget)。 |
![]() |
Deployments | 取得已部署元素至此目標的部署。 (繼承自 IDeploymentTarget)。 |
![]() |
Description | 這個項目的描述。 (繼承自 IElement)。 |
![]() |
Enumeration | 取得為此常值的型別的列舉。 |
![]() |
Name | 這個項目的名稱,在包含它的 Namespace 內。在這個 Namespace 中,不該有其他項目具有這個 Name。 (繼承自 INamedElement)。 |
![]() |
Namespace | 取得定義這個元素所在的命名空間。可能是 Null。 (繼承自 INamedElement)。 |
![]() |
OwnedComments | 取得此元素中包含的註解 (非連結到它的註解)。 (繼承自 IElement)。 |
![]() |
OwnedElements | 取得此元素所擁有的元素。每個元素都有一個擁有者,除了根 IModel 以外。 (繼承自 IElement)。 |
![]() |
Owner | 取得擁有這個項目的項目。除了根 IModel 以外的每個元素都有一個擁有者。 (繼承自 IElement)。 |
![]() |
OwningPackage | 取得包含此項目的套件。 (繼承自 IPackageableElement)。 |
![]() |
OwningTemplateParameter | 如果不為空,會在範本中將此元素定義為參數。 (繼承自 IParameterableElement)。 |
![]() |
QualifiedName | 取得此項目的名稱,在前面加上包含此項目之命名空間的完整名稱。如果 Name 是空白或 Namespace 的 Qualified Name 是空白,則為空白。 (繼承自 INamedElement)。 |
![]() |
Specification | 定義如何計算、衍生或構建執行個體。 (繼承自 IInstanceSpecification)。 |
![]() |
TemplateParameter | 如果不為空,會在範本中將此元素定義為參數。 (繼承自 IParameterableElement)。 |
![]() |
Visibility | 定義可以參考項目的位置。Public = 在任何位置都是可見的;private = 只在主控命名空間是可見的;protected = 對具有主控命名空間之一般化關聯性的項目為可見的; package = 在主控命名空間的封裝中是可見的 (如果有的話)。預設值 = public。 (繼承自 INamedElement)。 |
![]() |
VisibleAppliedStereotypes | (繼承自 IElement)。 |
回頁首
名稱 | 描述 | |
---|---|---|
![]() |
AddReference | 將字串連結到元素,通常該字串是像 URI、modelbus 參考或工作項目 ID 之類的參考。使用名稱來顯示參考的型別。傳回表示連結的 IReference 物件。 (以 UmlExtensions 定義。) |
![]() |
ApplyStereotype | 將造型套用於元素。建立以造型代表模型項目擴充的 IStereotypeInstance。 (以 ProfileStereotypeExtensions 定義。) |
![]() |
CreateSpecificationLiteralInteger | 在列舉常值中建立新的 ILiteralInteger 物件 (以 EnumerationLiteralExtensions 定義。) |
![]() |
Delete | 刪除此項目和任何關聯性、擁有的元素,以及圖形。 (以 UmlExtensions 定義。) |
![]() |
DeleteAllReference | 移除指定標籤的所有參考。 (以 UmlExtensions 定義。) |
![]() |
GetDependencyClients | 傳回依賴這個的項目的集合。 (以 NamedElementExtensions 定義。) |
![]() |
GetDependencySuppliers | 傳回這個所依賴的項目的集合。 (以 NamedElementExtensions 定義。) |
![]() |
GetId | 取得可識別此元素的 GUID。 (以 UmlExtensions 定義。) |
![]() |
GetModelStore | 取得包含此元素的 IModelStore。 (以 UmlExtensions 定義。) |
![]() |
GetReferences | 取得予此元素相關聯之指定標記的 IReferences。 (以 UmlExtensions 定義。) |
![]() |
GetRelatedElements<T> | 取得與此元素具有指定類型關聯性的元素。 (以 UmlExtensions 定義。) |
![]() |
GetRelatedLinks<T> | 取得此項目與指定型別的關聯性。 (以 UmlExtensions 定義。) |
![]() |
Shapes | 所有圖形,在任何開啟中的圖表或指定的開啟圖表顯示模型項目。 (以 PresentationHelpers 定義。) |
回頁首
![]() |
---|
這個型別中定義的方法是擴充方法。若要使用方法,您必須將專案參考加入至 .NET 組件 Microsoft.VisualStudio.ArchitectureTools.Extensibility.dll,而且必須將指示詞 using Microsoft.VisualStudio.ArchitectureTools.Extensibility.Uml; 包含在程式碼中。 |