CustomPropertyDescriptor 類別

DomainRelationship CustomPropertyDescriptor 與型別描述項的屬性路徑,藉此定義的自訂屬性描述項。

繼承階層架構

System.Object
  Microsoft.VisualStudio.Modeling.ModelElement
    Microsoft.VisualStudio.Modeling.ElementLink
      Microsoft.VisualStudio.Modeling.DslDefinition.CustomPropertyDescriptor

命名空間:  Microsoft.VisualStudio.Modeling.DslDefinition
組件:  Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.11.0 (在 Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.11.0.dll 中)

語法

'宣告
<DescriptionResourceAttribute("Microsoft.VisualStudio.Modeling.DslDefinition.CustomPropertyDescriptor.Description",  _
    GetType(DslDefinitionModelDomainModel), "Microsoft.VisualStudio.Modeling.DslDefinition.GeneratedCode.DomainModelResx")> _
<DomainRelationshipAttribute(IsEmbedding := True)> _
<CLSCompliantAttribute(True)> _
<DomainObjectIdAttribute("7ca5645c-dca6-4128-8864-b70deacb107d")> _
<DisplayNameResourceAttribute("Microsoft.VisualStudio.Modeling.DslDefinition.CustomPropertyDescriptor.DisplayName",  _
    GetType(DslDefinitionModelDomainModel), "Microsoft.VisualStudio.Modeling.DslDefinition.GeneratedCode.DomainModelResx")> _
<DomainModelOwnerAttribute(GetType(DslDefinitionModelDomainModel))> _
Public NotInheritable Class CustomPropertyDescriptor _
    Inherits ElementLink
[DescriptionResourceAttribute("Microsoft.VisualStudio.Modeling.DslDefinition.CustomPropertyDescriptor.Description", 
    typeof(DslDefinitionModelDomainModel), "Microsoft.VisualStudio.Modeling.DslDefinition.GeneratedCode.DomainModelResx")]
[DomainRelationshipAttribute(IsEmbedding = true)]
[CLSCompliantAttribute(true)]
[DomainObjectIdAttribute("7ca5645c-dca6-4128-8864-b70deacb107d")]
[DisplayNameResourceAttribute("Microsoft.VisualStudio.Modeling.DslDefinition.CustomPropertyDescriptor.DisplayName", 
    typeof(DslDefinitionModelDomainModel), "Microsoft.VisualStudio.Modeling.DslDefinition.GeneratedCode.DomainModelResx")]
[DomainModelOwnerAttribute(typeof(DslDefinitionModelDomainModel))]
public sealed class CustomPropertyDescriptor : ElementLink

CustomPropertyDescriptor 型別會公開下列成員。

建構函式

  名稱 說明
公用方法 CustomPropertyDescriptor(DomainTypeDescriptor, PropertyPath) 建構函式中指定的 DomainTypeDescriptor 的磁碟分割建立 CustomPropertyDescriptor 的連結
公用方法 CustomPropertyDescriptor(Partition, array<RoleAssignment[]) 建構函式
公用方法 CustomPropertyDescriptor(Store, array<RoleAssignment[]) 建構函式
公用方法 CustomPropertyDescriptor(Partition, array<RoleAssignment[], array<PropertyAssignment[]) 建構函式
公用方法 CustomPropertyDescriptor(Store, array<RoleAssignment[], array<PropertyAssignment[]) 建構函式

回頁首

屬性

  名稱 說明
公用屬性 Category 取得或設定類別目錄網域屬性的值。屬性出現在 [屬性] 視窗中的類別。
公用屬性 DisplayName 取得或設定顯示名稱網域屬性的值。隨即出現在產生的設計工具中的屬性名稱。
公用屬性 DistantPropertyPath DomainRole DistantPropertyPath
公用屬性 GeneratesCustomPropertyDescriptor 取得或設定 GeneratesCustomPropertyDescriptor 網域屬性的值。如果為 True,就會產生自訂的屬性描述項。
公用屬性 Id 取得項目的 ID。 (繼承自 ModelElement)。
公用屬性 IsActive 取得 IsActive 旗標,並確認,查看是否為作用中的項目。 (繼承自 ModelElement)。
公用屬性 IsDeleted 取得 IsDeleted 旗標和檢查,以查看是否已從模型刪除的項目。 (繼承自 ModelElement)。
公用屬性 IsDeleting 取得 IsDeleting 旗標,並驗證是否將項目從模型來刪除。 (繼承自 ModelElement)。
公用屬性 IsUIReadOnly 取得或設定 IsUIReadOnly 網域屬性的值。如果為 True,透過 UI 瀏覽時不可以編輯的屬性。
公用屬性 LinkedElements 取得這個項目連結連接的項目唯讀集合。 (繼承自 ElementLink)。
公用屬性 Partition 取得或設定Partition所包含的項目。 (繼承自 ModelElement)。
公用屬性 Store 取得Store所包含的項目。 (繼承自 ModelElement)。
公用屬性 TypeDescriptor DomainRole TypeDescriptor 路徑識別屬性會包含在型別描述項。

回頁首

方法

  名稱 說明
公用方法 Copy() 建立模型中的項目的複本。 (繼承自 ModelElement)。
公用方法 Copy(IEnumerable<Guid>) 連結和項目,請建立一份項目,且它的子項。 (繼承自 ModelElement)。
公用方法 Delete() 從模型中刪除的項目。 (繼承自 ModelElement)。
公用方法 Delete(array<Guid[]) 從模型中刪除的項目。 (繼承自 ModelElement)。
公用方法 Equals 判斷指定的物件是否等於目前物件。 (繼承自 Object)。
公用方法 GetDomainClass 取得這個項目中最具衍生性的網域類別。 (繼承自 ModelElement)。
公用方法 GetDomainRelationship 取得這個連結會具現化的網域關聯性。 (繼承自 ElementLink)。
公用方法 GetHashCode 做為特定型別的雜湊函式。 (繼承自 Object)。
公用方法靜態成員 GetLink 取得一個 CustomPropertyDescriptor 之間的連結指定的 DomainTypeDescriptorand PropertyPath。
公用方法靜態成員 GetLinks 取得指定的 DomainTypeDescriptor 和 PropertyPath 之間的任何 CustomPropertyDescriptor 連結。
公用方法靜態成員 GetLinksToPathsOfCustomPropertyDescriptors 取得 DomainTypeDescriptor 的 CustomPropertyDescriptor 連結清單。
公用方法靜態成員 GetLinkToTypeDescriptor 取得 PropertyPath 的 CustomPropertyDescriptor 連結。
公用方法靜態成員 GetPathsOfCustomPropertyDescriptors 取得一份 PathsOfCustomPropertyDescriptors。
公用方法 GetType 取得目前執行個體的 Type。 (繼承自 Object)。
公用方法靜態成員 GetTypeDescriptor 取得 TypeDescriptor。
公用方法 MoveBefore 變更連接到的項目中,然後再移動另一個之前,此連結的連結順序。 (繼承自 ElementLink)。
公用方法 MoveToIndex 此連結移到清單中的指定的索引位置。 (繼承自 ElementLink)。
受保護的方法 OnCopy 已為另一個項目的複本建立這個項目時,會呼叫它。 (繼承自 ModelElement)。
受保護的方法 OnDeleted 從模型中刪除這個項目時,會呼叫它。 (繼承自 ModelElement)。
受保護的方法 OnDeleting 刪除這個項目時呼叫。 (繼承自 ModelElement)。
受保護的方法 OnResurrected 當這個項目加入至模型時,會呼叫它。 (繼承自 ModelElement)。
受保護的方法 OnRolePlayerPositionChanged 角色的位置已變更時呼叫。 (繼承自 ModelElement)。
受保護的方法 OnRolePlayerPositionChanging 當角色玩家位置變更時呼叫。 (繼承自 ModelElement)。
公用方法靜態成員 SetTypeDescriptor 設定 TypeDescriptor。
公用方法 ToString 傳回表示目前物件的字串。 (繼承自 Object)。

回頁首

擴充方法

  名稱 說明
公用擴充方法 AddExtension(Guid) 多載。 延伸此 ModelElement 已識別的網域型別的新執行個體化的副檔名。如果項目已經有該類型的副檔名,將會擲回的 InvalidOperationException。 (以 ModelElementExtensionMethods 定義。)
公用擴充方法 AddExtension(Type) 多載。 延伸此 ModelElement,以指定之型別的新執行個體化的副檔名。如果項目已經有該類型的副檔名,將會擲回的 InvalidOperationException。 (以 ModelElementExtensionMethods 定義。)
公用擴充方法 AddExtension(DomainClassInfo) 多載。 延伸此 ModelElement 指定的網域型別的新執行個體化的副檔名。如果項目已經有該類型的副檔名,將會擲回的 InvalidOperationException。 (以 ModelElementExtensionMethods 定義。)
公用擴充方法 AddExtension(ExtensionElement) 多載。 擴充帶有特定延伸此 ModelElement。如果項目已經有相同類型的副檔名,將會擲回的 InvalidOperationException。 (以 ModelElementExtensionMethods 定義。)
公用擴充方法 AddExtension<T>() 多載。 延伸此 ModelElement 特定型別的新執行個體化的副檔名。如果項目已經有相同類型的副檔名,將會擲回的 InvalidOperationException。 (以 ModelElementExtensionMethods 定義。)
公用擴充方法 CanDelete 從模型中刪除的項目。 (以 ImmutabilityExtensionMethods 定義。)
公用擴充方法 GetAllExtensions 傳回可列舉,以便在執行、 強效且具內嵌在這個 ModelElement 的第一個周遊整個樹狀結構的延伸項目。 (以 ModelElementExtensionMethods 定義。)
公用擴充方法 GetBaseElement 傳回用來加入指定的 ModelElement 虛擬 MEL 的根目錄。 (以 ModelElementExtensionMethods 定義。)
公用擴充方法 GetExtension(Guid) 多載。 (以 ModelElementExtensionMethods 定義。)
公用擴充方法 GetExtension(Type) 多載。 取得指定之型別的 ExtensionElement,從可用的延伸此 ModelElement。如果沒有這類的延伸項目將會產生 InvalidOperationException。 (以 ModelElementExtensionMethods 定義。)
公用擴充方法 GetExtension(DomainClassInfo) 多載。 (以 ModelElementExtensionMethods 定義。)
公用擴充方法 GetExtension<T>() 多載。 取得指定之型別的 ExtensionElement,從可用的延伸此 ModelElement。如果沒有這類的延伸項目將會產生 InvalidOperationException。 (以 ModelElementExtensionMethods 定義。)
公用擴充方法 GetLocks 取得這個項目鎖定旗標。這會包括任何包含項目的的磁碟分割上啟用的鎖定。 (以 ImmutabilityExtensionMethods 定義。)
公用擴充方法 IsExtendedBy(Guid) 多載。 查詢是否依特定類型的 ExtensionElement 目前延伸此 ModelElement。 (以 ModelElementExtensionMethods 定義。)
公用擴充方法 IsExtendedBy(Type) 多載。 查詢是否依特定類型的 ExtensionElement 目前延伸此 ModelElement。 (以 ModelElementExtensionMethods 定義。)
公用擴充方法 IsExtendedBy(DomainClassInfo) 多載。 查詢是否依特定類型的 ExtensionElement 目前延伸此 ModelElement。 (以 ModelElementExtensionMethods 定義。)
公用擴充方法 IsLocked 測試是否這個項目會有任何一組指定的鎖定 (以 ImmutabilityExtensionMethods 定義。)
公用擴充方法 RemoveExtension(Type) 多載。 移除其他的特定型別的這個 ModelElement 的副檔名。 (以 ModelElementExtensionMethods 定義。)
公用擴充方法 RemoveExtension(Guid) 多載。 移除屬於特定型別指定任何的 ModelElement 副檔名。 (以 ModelElementExtensionMethods 定義。)
公用擴充方法 RemoveExtension(DomainClassInfo) 多載。 移除屬於特定型別指定任何的 ModelElement 副檔名。 (以 ModelElementExtensionMethods 定義。)
公用擴充方法 RemoveExtension(ExtensionElement) 多載。 指定的 ExtensionElement 移除這個 ModelElement 的副檔名。 (以 ModelElementExtensionMethods 定義。)
公用擴充方法 SetLocks 設定這個項目的鎖定旗標 (以 ImmutabilityExtensionMethods 定義。)
公用擴充方法 TryGetExtension(Guid) 多載。 (以 ModelElementExtensionMethods 定義。)
公用擴充方法 TryGetExtension(Type) 多載。 (以 ModelElementExtensionMethods 定義。)
公用擴充方法 TryGetExtension(DomainClassInfo) 多載。 (以 ModelElementExtensionMethods 定義。)
公用擴充方法 TryGetExtension<T>() 多載。 取得指定之型別的 ExtensionElement,從可用的延伸此 ModelElement。如果這個項目有沒有這類副檔名結果會是 null。 (以 ModelElementExtensionMethods 定義。)

回頁首

欄位

  名稱 說明
公用欄位靜態成員 CategoryDomainPropertyId 分類網域屬性 id。
公用欄位靜態成員 DisplayNameDomainPropertyId 顯示名稱的網域內容識別碼。
公用欄位靜態成員 DistantPropertyPathDomainRoleId DistantPropertyPath 網域角色識別碼。
公用欄位靜態成員 DomainClassId CustomPropertyDescriptor 網域類別識別碼。
公用欄位靜態成員 GeneratesCustomPropertyDescriptorDomainPropertyId GeneratesCustomPropertyDescriptor 的網域內容識別碼。
公用欄位靜態成員 IsUIReadOnlyDomainPropertyId IsUIReadOnly 的網域內容識別碼。
公用欄位靜態成員 TypeDescriptorDomainRoleId TypeDescriptor 網域角色識別碼。

回頁首

明確介面實作

  名稱 說明
明確介面實作私用方法 IMergeElements.CanMerge 如果這個項目可以合併具有原型的內容,則傳回 true。 (繼承自 ModelElement)。
明確介面實作私用方法 IMergeElements.ChooseMergeTarget(ElementGroup) (繼承自 ModelElement)。
明確介面實作私用方法 IMergeElements.ChooseMergeTarget(ElementGroupPrototype) (繼承自 ModelElement)。
明確介面實作私用方法 IMergeElements.MergeConfigure (繼承自 ModelElement)。
明確介面實作私用方法 IMergeElements.MergeDisconnect (繼承自 ModelElement)。
明確介面實作私用方法 IMergeElements.MergeRelate (繼承自 ModelElement)。

回頁首

執行緒安全

這個型別的任何 Public static (在 Visual Basic 中為 Shared) 成員都具備執行緒安全。不保證任何執行個體成員是安全執行緒。

請參閱

參考

Microsoft.VisualStudio.Modeling.DslDefinition 命名空間