다음을 통해 공유


DomainClass 클래스

DSL 정의에서 도메인 클래스를 나타냅니다.

상속 계층 구조

System.Object
  Microsoft.VisualStudio.Modeling.ModelElement
    Microsoft.VisualStudio.Modeling.DslDefinition.DomainElement
      Microsoft.VisualStudio.Modeling.DslDefinition.AttributedDomainElement
        Microsoft.VisualStudio.Modeling.DslDefinition.NamedDomainElement
          Microsoft.VisualStudio.Modeling.DslDefinition.DomainClass
            Microsoft.VisualStudio.Modeling.DslDefinition.Diagram
            Microsoft.VisualStudio.Modeling.DslDefinition.DiagramElement
            Microsoft.VisualStudio.Modeling.DslDefinition.DomainRelationship

네임스페이스:  Microsoft.VisualStudio.Modeling.DslDefinition
어셈블리:  Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.12.0(Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.12.0.dll)

구문

‘선언
<DisplayNameResourceAttribute("Microsoft.VisualStudio.Modeling.DslDefinition.DomainClass.DisplayName",  _
    GetType(DslDefinitionModelDomainModel), "Microsoft.VisualStudio.Modeling.DslDefinition.GeneratedCode.DomainModelResx")> _
<DescriptionResourceAttribute("Microsoft.VisualStudio.Modeling.DslDefinition.DomainClass.Description",  _
    GetType(DslDefinitionModelDomainModel), "Microsoft.VisualStudio.Modeling.DslDefinition.GeneratedCode.DomainModelResx")> _
<DomainModelOwnerAttribute(GetType(DslDefinitionModelDomainModel))> _
<CLSCompliantAttribute(True)> _
<DomainObjectIdAttribute("b76cd8eb-07d4-4fe1-be30-8ddd249e26b2")> _
<ValidationStateAttribute(ValidationState.Enabled)> _
Public Class DomainClass _
    Inherits NamedDomainElement
[DisplayNameResourceAttribute("Microsoft.VisualStudio.Modeling.DslDefinition.DomainClass.DisplayName", 
    typeof(DslDefinitionModelDomainModel), "Microsoft.VisualStudio.Modeling.DslDefinition.GeneratedCode.DomainModelResx")]
[DescriptionResourceAttribute("Microsoft.VisualStudio.Modeling.DslDefinition.DomainClass.Description", 
    typeof(DslDefinitionModelDomainModel), "Microsoft.VisualStudio.Modeling.DslDefinition.GeneratedCode.DomainModelResx")]
[DomainModelOwnerAttribute(typeof(DslDefinitionModelDomainModel))]
[CLSCompliantAttribute(true)]
[DomainObjectIdAttribute("b76cd8eb-07d4-4fe1-be30-8ddd249e26b2")]
[ValidationStateAttribute(ValidationState.Enabled)]
public class DomainClass : NamedDomainElement

DomainClass 형식에서는 다음과 같은 멤버를 노출합니다.

생성자

  이름 설명
Public 메서드 DomainClass(Partition, array<PropertyAssignment[]) 생성자
Public 메서드 DomainClass(Store, array<PropertyAssignment[]) 생성자

위쪽

속성

  이름 설명
Public 속성 AccessModifier AccessModifier 도메인 속성 값을 가져오거나 설정합니다.도메인 클래스의 액세스 한정자가 공용 한정자인지 내부 한정자인지 확인합니다.
Public 속성 AllDescendants 여기에서 직접 또는 간접적으로 파생되는 모든 도메인 클래스의 읽기 전용 목록을 가져옵니다.
Public 속성 AllProperties 이 클래스에 정의된 DomainProperties 및 기본 클래스에서 상속된 DomainProperties의 모든 집합입니다.
Public 속성 AllRolesPlayed 이 클래스에서 직접 수행된 DomainRoles 및 기본 클래스에서 상속된 DomainRoles의 모든 집합입니다.
Public 속성 Attributes 특성 목록을 가져옵니다. (AttributedDomainElement에서 상속됨)
Public 속성 BaseClass 이 도메인 클래스의 기본 클래스를 가져오거나 설정합니다.
Public 속성 ClassData ClassData를 가져오거나 설정합니다.도메인 클래스에 대한 XML serialization 구성 데이터입니다.
Public 속성 CustomAttributes CustomAttributes 도메인 속성 값을 가져오거나 설정합니다.이 요소에서 생성되는 코드 특성에 사용됩니다. (AttributedDomainElement에서 상속됨)
Public 속성 CustomTypeDescriptor CustomTypeDescriptor를 가져오거나 설정합니다.클래스에 대한 사용자 지정 형식 설명자의 정의입니다.
Public 속성 Description Description 도메인 속성 값을 가져오거나 설정합니다.UI와 생성된 디자이너의 코드 설명서에 사용됩니다. (AttributedDomainElement에서 상속됨)
Public 속성 DisplayName DisplayName 도메인 속성 값을 가져오거나 설정합니다.이 요소에 대해 생성된 디자이너에 표시되는 이름입니다. (NamedDomainElement에서 상속됨)
Public 속성 DslLibrary 참조 형식을 정의하는 DslLibrary를 가져오거나 설정합니다.
Public 속성 ElementMergeDirectives ElementMergeDirectives의 목록을 가져옵니다.
Public 속성 GeneratesDoubleDerived GeneratesDoubleDerived 도메인 속성 값을 가져오거나 설정합니다.값이 true인 경우 모든 기능을 포함한 기본 클래스와 재정의를 통해 사용자가 지정할 수 있는 partial 클래스가 생성됩니다.
Public 속성 HasCustomConstructor HasCustomConstructor 도메인 속성 값을 가져오거나 설정합니다.True인 경우 생성된 코드에 사용자 지정 생성자가 제공됨을 나타냅니다.
Public 속성 HelpKeyword HelpKeyword 도메인 속성 값을 가져오거나 설정합니다.이 요소에 대한 F1 도움말을 인덱스하는 데 사용된 선택적 키워드입니다. (NamedDomainElement에서 상속됨)
Public 속성 Id 요소의 ID를 가져옵니다. (ModelElement에서 상속됨)
Public 속성 InheritanceModifier InheritanceModifier 도메인 속성 값을 가져오거나 설정합니다.도메인 클래스에서 생성된 .NET 클래스의 상속 한정자가 none, abstract 또는 sealed 중 어느 것인지를 확인합니다.
Public 속성 IsActive IsActive 플래그를 가져오고 요소가 활성 상태인지 여부를 확인합니다. (ModelElement에서 상속됨)
Public 속성 IsDeleted IsDeleted 플래그를 가져오고 요소가 모델에서 삭제되었는지 여부를 확인합니다. (ModelElement에서 상속됨)
Public 속성 IsDeleting IsDeleting 플래그를 가져오고 요소가 현재 모델에서 삭제되고 있는지 여부를 확인합니다. (ModelElement에서 상속됨)
Public 속성 IsDescriptionTracking IsDescriptionTracking 도메인 속성 값을 가져오거나 설정합니다.True인 경우 Description 속성은 DSL 정의에 있는 다른 데이터를 추적합니다. (AttributedDomainElement에서 상속됨)
Public 속성 IsDisplayNameTracking IsDisplayNameTracking 도메인 속성 값을 가져오거나 설정합니다.True인 경우 DisplayName 속성은 DSL 정의에 있는 다른 데이터를 추적합니다. (NamedDomainElement에서 상속됨)
Public 속성 IsNamespaceTracking IsNamespaceTracking 도메인 속성 값을 가져오거나 설정합니다.True인 경우 Namespace 속성은 DSL 정의에 있는 다른 데이터를 추적합니다.
Public 속성 Name Name 도메인 속성 값을 가져오거나 설정합니다.이 요소의 이름입니다. (NamedDomainElement에서 상속됨)
Public 속성 Namespace Namespace 도메인 속성 값을 가져오거나 설정합니다.이 도메인 클래스와 관련된 네임스페이스입니다.
Public 속성 Notes Notes 도메인 속성 값을 가져오거나 설정합니다.이 요소에 연결된 비공식 메모입니다. (DomainElement에서 상속됨)
Public 속성 Partition 요소가 들어 있는 Partition을 가져오거나 설정합니다. (ModelElement에서 상속됨)
Public 속성 Properties 속성의 목록을 가져옵니다.
Protected 속성 ProxyIsNameTracking (NamedDomainElement에서 상속됨)
Public 속성 RolesPlayed RolesPlayed의 목록을 가져옵니다.클래스가 수행하는 역할입니다.
Public 속성 Store 요소가 포함된 Store를 가져옵니다. (ModelElement에서 상속됨)
Public 속성 SubClasses SubClasses의 목록을 가져옵니다.Microsoft.VisualStudio.Modeling.DslDefinition.ClassHasBaseClass.BaseClass에 대한 설명

위쪽

메서드

  이름 설명
Protected 메서드 CalculateDescription Description의 값을 계산합니다. (AttributedDomainElement.CalculateDescription()을(를) 재정의함)
Protected 메서드 CalculateName 이름 값 계산 (NamedDomainElement에서 상속됨)
Protected 메서드 CanMerge 지정된 루트 ProtoElement에서 표현하는 소스 요소를 이 요소에 추가할 수 있는지 여부를 나타내는 값을 반환합니다. (ModelElement.CanMerge(ProtoElementBase, ElementGroupPrototype)을(를) 재정의함)
Protected 메서드 ChooseMergeTarget(ElementGroup) 사용자가 복사, 끌기 또는 만들려는 하위 요소로 사용할 대상 요소를 선택합니다. (ModelElement에서 상속됨)
Protected 메서드 ChooseMergeTarget(ElementGroupPrototype) 사용자가 복사, 끌기 또는 만들려는 하위 요소로 사용할 대상 요소를 선택합니다. (ModelElement에서 상속됨)
Public 메서드 Copy() 모델에 요소의 복사본을 만듭니다. (ModelElement에서 상속됨)
Public 메서드 Copy(IEnumerable<Guid>) 요소와 해당 요소의 자식 링크 및 자식 요소에 대한 복사본을 만듭니다. (ModelElement에서 상속됨)
Public 메서드 Delete() 모델에서 요소를 삭제합니다. (ModelElement에서 상속됨)
Public 메서드 Delete(array<Guid[]) 모델에서 요소를 삭제합니다. (ModelElement에서 상속됨)
Public 메서드 Equals 지정한 개체와 현재 개체가 같은지 여부를 확인합니다. (Object에서 상속됨)
Protected 메서드 Finalize 가비지 수집에서 회수하기 전에 개체에서 리소스를 해제하고 다른 정리 작업을 수행할 수 있게 합니다. (Object에서 상속됨)
Public 메서드 GetDomainClass 이 요소에 대해 가장 많이 파생된 도메인 클래스를 가져옵니다. (ModelElement에서 상속됨)
Public 메서드 GetFullName 이 클래스의 정규화된 이름을 가져옵니다.
Public 메서드 GetHashCode 기본 해시 함수로 작동합니다. (Object에서 상속됨)
Public 메서드 GetRelativeName 현재 네임스페이스를 기준으로 하는 도메인 클래스의 이름을 가져옵니다.현재 네임스페이스가 this.Namespace와 같은 경우 this.Name이 반환됩니다.그렇지 않으면, this.GetFullName()이 반환됩니다.
Protected 메서드 GetRoleCollection<TCollection, TElement>(Guid) 연결된 요소 컬렉션을 가져오거나 만듭니다. (ModelElement에서 상속됨)
Public 메서드 GetType 현재 인스턴스의 Type을 가져옵니다. (Object에서 상속됨)
Public 메서드 IsDerivedFrom 해당 클래스가 지정된 클래스에서 파생되는지 테스트합니다.
Protected 메서드 MemberwiseClone 현재 Object의 단순 복사본을 만듭니다. (Object에서 상속됨)
Protected 메서드 MergeConfigure 새로 병합된 DomainClass를 구성합니다. (ModelElement.MergeConfigure(ElementGroup)을(를) 재정의함)
Protected 메서드 MergeDisconnect 즉, MergeRelate-반대 작업을 수행 현재 (MergeRelate에 의해 작성 된 링크 제거)에서 지정된 된 요소를 연결을 끊습니다. (ModelElement.MergeDisconnect(ModelElement)을(를) 재정의함)
Protected 메서드 MergeRelate 이 대상 요소와 지정된 소스 요소 사이의 관계를 만드는 병합 프로세스에 의해 호출됩니다.일반적으로 부모-자식 관계는 대상 요소(부모)와 소스 요소(자식) 간에 설정되지만 어떤 관계나 설정할 수 있습니다. (ModelElement.MergeRelate(ModelElement, ElementGroup)을(를) 재정의함)
Protected 메서드 OnCopy 이 요소가 다른 요소의 복사본으로 만들어졌으면 호출됩니다. (ModelElement에서 상속됨)
Protected 메서드 OnDeleted 이 요소가 모델에서 삭제되었으면 호출됩니다. (ModelElement에서 상속됨)
Protected 메서드 OnDeleting 이 요소가 삭제되려고 하면 호출됩니다. (ModelElement에서 상속됨)
Protected 메서드 OnInheritanceModifierChanged DomainClass에서 InheritanceModifier가 변경되면 호출됩니다.
Protected 메서드 OnNameChanged DomainClass의 이름이 변경되면 호출됩니다. (NamedDomainElement.OnNameChanged(String, String)을(를) 재정의함)
Protected 메서드 OnNamespaceChanged DomainClass의 네임스페이스가 변경되면 호출됩니다.
Protected 메서드 OnResurrected 이 요소가 모델에 다시 추가되었으면 호출됩니다. (ModelElement에서 상속됨)
Protected 메서드 OnRolePlayerPositionChanged 역할의 위치가 바뀌면 호출됩니다. (ModelElement에서 상속됨)
Protected 메서드 OnRolePlayerPositionChanging 역할 수행자 위치가 변경되려고 하면 호출됩니다. (ModelElement에서 상속됨)
Public 메서드 ToString 현재 개체를 나타내는 문자열을 반환합니다. (Object에서 상속됨)

위쪽

확장 메서드

  이름 설명
Public 확장 메서드 AddExtension(Guid) 오버로드되었습니다. 식별된 도메인 형식의 새로 인스턴스화된 확장을 사용하여 이 ModelElement를 확장합니다.요소에 이미 해당 형식의 확장이 있으면 InvalidOperationException이 throw됩니다. (ModelElementExtensionMethods에서 정의됨)
Public 확장 메서드 AddExtension(Type) 오버로드되었습니다. 지정된 형식의 새로 인스턴스화된 확장을 사용하여 이 ModelElement를 확장합니다.요소에 이미 해당 형식의 확장이 있으면 InvalidOperationException이 throw됩니다. (ModelElementExtensionMethods에서 정의됨)
Public 확장 메서드 AddExtension(DomainClassInfo) 오버로드되었습니다. 지정된 도메인 형식의 새로 인스턴스화된 확장을 사용하여 이 ModelElement를 확장합니다.요소에 이미 해당 형식의 확장이 있으면 InvalidOperationException이 throw됩니다. (ModelElementExtensionMethods에서 정의됨)
Public 확장 메서드 AddExtension(ExtensionElement) 오버로드되었습니다. 특정 확장을 사용하여 이 ModelElement를 확장합니다.요소에 이미 같은 형식의 확장이 있으면 InvalidOperationException이 throw됩니다. (ModelElementExtensionMethods에서 정의됨)
Public 확장 메서드 AddExtension<T>() 오버로드되었습니다. 특정 형식의 새로 인스턴스화된 확장을 사용하여 이 ModelElement를 확장합니다.요소에 이미 같은 형식의 확장이 있으면 InvalidOperationException이 throw됩니다. (ModelElementExtensionMethods에서 정의됨)
Public 확장 메서드 CanDelete 모델에서 요소를 삭제합니다. (ImmutabilityExtensionMethods에서 정의됨)
Public 확장 메서드 GetAllExtensions 이 ModelElement에 포함되어 있는 확장 요소 트리에서 너비 우선 탐색을 수행하는 열거형을 반환합니다. (ModelElementExtensionMethods에서 정의됨)
Public 확장 메서드 GetBaseElement 지정된 ModelElement가 참여 중인 가상 MEL의 루트를 반환합니다. (ModelElementExtensionMethods에서 정의됨)
Public 확장 메서드 GetExtension(Guid) 오버로드되었습니다. (ModelElementExtensionMethods에서 정의됨)
Public 확장 메서드 GetExtension(Type) 오버로드되었습니다. 이 ModelElement의 사용 가능한 확장에서 지정된 형식의 ExtensionElement를 가져옵니다.요소에 이런 확장명이 없는 경우 Invalidoperationexception은 발생하지 않습니다. (ModelElementExtensionMethods에서 정의됨)
Public 확장 메서드 GetExtension(DomainClassInfo) 오버로드되었습니다. (ModelElementExtensionMethods에서 정의됨)
Public 확장 메서드 GetExtension<T>() 오버로드되었습니다. 이 ModelElement의 사용 가능한 확장에서 지정된 형식의 ExtensionElement를 가져옵니다.요소에 이런 확장명이 없는 경우 Invalidoperationexception은 발생하지 않습니다. (ModelElementExtensionMethods에서 정의됨)
Public 확장 메서드 GetLocks 이 요소의 잠금 플래그를 가져옵니다.여기에는 요소를 포함하는 파티션에서 사용하도록 설정되어 있는 모든 잠금이 포함됩니다. (ImmutabilityExtensionMethods에서 정의됨)
Public 확장 메서드 IsExtendedBy(Guid) 오버로드되었습니다. 이 ModelElement가 현재 특정 형식의 ExtensionElement에 의해 확장되는지 여부를 쿼리합니다. (ModelElementExtensionMethods에서 정의됨)
Public 확장 메서드 IsExtendedBy(Type) 오버로드되었습니다. 이 ModelElement가 현재 특정 형식의 ExtensionElement에 의해 확장되는지 여부를 쿼리합니다. (ModelElementExtensionMethods에서 정의됨)
Public 확장 메서드 IsExtendedBy(DomainClassInfo) 오버로드되었습니다. 이 ModelElement가 현재 특정 형식의 ExtensionElement에 의해 확장되는지 여부를 쿼리합니다. (ModelElementExtensionMethods에서 정의됨)
Public 확장 메서드 IsLocked 이 요소에 지정된 잠금 집합이 있는지 여부를 테스트합니다. (ImmutabilityExtensionMethods에서 정의됨)
Public 확장 메서드 RemoveExtension(Type) 오버로드되었습니다. 특정 형식인 이 ModelElement의 확장명을 제거합니다. (ModelElementExtensionMethods에서 정의됨)
Public 확장 메서드 RemoveExtension(Guid) 오버로드되었습니다. 특정 형식의 지정된 ModelElement의 확장명을 제거합니다. (ModelElementExtensionMethods에서 정의됨)
Public 확장 메서드 RemoveExtension(DomainClassInfo) 오버로드되었습니다. 특정 형식의 지정된 ModelElement의 확장명을 제거합니다. (ModelElementExtensionMethods에서 정의됨)
Public 확장 메서드 RemoveExtension(ExtensionElement) 오버로드되었습니다. 이 ModelElement의 확장명에서 지정된 ExtensionElement를 제거합니다. (ModelElementExtensionMethods에서 정의됨)
Public 확장 메서드 SetLocks 이 요소의 잠금 플래그를 설정합니다. (ImmutabilityExtensionMethods에서 정의됨)
Public 확장 메서드 TryGetExtension(Guid) 오버로드되었습니다. (ModelElementExtensionMethods에서 정의됨)
Public 확장 메서드 TryGetExtension(Type) 오버로드되었습니다. (ModelElementExtensionMethods에서 정의됨)
Public 확장 메서드 TryGetExtension(DomainClassInfo) 오버로드되었습니다. (ModelElementExtensionMethods에서 정의됨)
Public 확장 메서드 TryGetExtension<T>() 오버로드되었습니다. 이 ModelElement의 사용 가능한 확장에서 지정된 형식의 ExtensionElement를 가져옵니다.이 요소에 이런 확장명이 없는 경우 결과는 null입니다. (ModelElementExtensionMethods에서 정의됨)

위쪽

필드

  이름 설명
Public 필드정적 멤버 AccessModifierDomainPropertyId AccessModifier 도메인 속성 ID입니다.
Public 필드정적 멤버 DomainClassId 도메인 클래스 ID입니다.
Public 필드정적 멤버 GeneratesDoubleDerivedDomainPropertyId GeneratesDoubleDerived 도메인 속성 ID입니다.
Public 필드정적 멤버 HasCustomConstructorDomainPropertyId HasCustomConstructor 도메인 속성 ID입니다.
Public 필드정적 멤버 InheritanceModifierDomainPropertyId InheritanceModifier 도메인 속성 ID입니다.
Public 필드정적 멤버 IsNamespaceTrackingDomainPropertyId IsNamespaceTracking 도메인 속성 ID입니다.
Public 필드정적 멤버 NamespaceDomainPropertyId Namespace 도메인 속성 ID입니다.

위쪽

명시적 인터페이스 구현

  이름 설명
명시적 인터페이스 구현Private 메서드 IMergeElements.CanMerge 이 요소를 프로토타입의 콘텐츠와 함께 병합할 수 있는 경우 true를 반환합니다. (ModelElement에서 상속됨)
명시적 인터페이스 구현Private 메서드 IMergeElements.ChooseMergeTarget(ElementGroup) (ModelElement에서 상속됨)
명시적 인터페이스 구현Private 메서드 IMergeElements.ChooseMergeTarget(ElementGroupPrototype) (ModelElement에서 상속됨)
명시적 인터페이스 구현Private 메서드 IMergeElements.MergeConfigure (ModelElement에서 상속됨)
명시적 인터페이스 구현Private 메서드 IMergeElements.MergeDisconnect (ModelElement에서 상속됨)
명시적 인터페이스 구현Private 메서드 IMergeElements.MergeRelate (ModelElement에서 상속됨)

위쪽

스레드로부터의 안전성

이 형식의 모든 공용 static(Visual Basic의 경우 Shared) 멤버는 스레드로부터 안전합니다. 인터페이스 멤버는 스레드로부터 안전하지 않습니다.

참고 항목

참조

Microsoft.VisualStudio.Modeling.DslDefinition 네임스페이스