다음을 통해 공유


ElementGroupPrototype 클래스

요소와 링크의 집합을 다시 만드는 데 필요한 정보를 포함합니다. 도구, 클립보드 및 끌기 작업에서 요소를 저장하는 데 사용됩니다.

상속 계층 구조

System.Object
  Microsoft.VisualStudio.Modeling.ElementGroupPrototype

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

구문

‘선언
<SerializableAttribute> _
Public NotInheritable Class ElementGroupPrototype _
    Implements ISerializable, IDeserializationCallback
[SerializableAttribute]
public sealed class ElementGroupPrototype : ISerializable, 
    IDeserializationCallback

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

생성자

  이름 설명
Public 메서드 ElementGroupPrototype(ElementGroup, IEnumerable<ModelElement>) 생성자
Public 메서드 ElementGroupPrototype(Partition, Guid) 루트 도메인 클래스 ID를 사용하는 생성자입니다.한 요소를 부모 요소 아래에서 병합할 수 있는지 여부를 결정하는 데 사용됩니다.
Public 메서드 ElementGroupPrototype(Partition, ICollection<ModelElement>, ElementGroup) 생성자

위쪽

속성

  이름 설명
Public 속성 ProtoElementLinks ElementGroupPrototype에 포함된 모든 ProtoElementLinks의 컬렉션을 가져옵니다.
Public 속성 ProtoElements ElementGroupPrototype에 포함된 모든 ProtoElements의 컬렉션을 가져옵니다.
Public 속성 RootProtoElements ElementGroupPrototype에 포함된 모든 루트 ProtoElements의 컬렉션을 가져옵니다.
Public 속성 SourceContext 이 ElementGroupPrototype의 소스 ElementGroupContext 개체 반환
Public 속성 SourceRootElementIds 소스 컨텍스트에서 루트 요소 ID의 읽기 전용 목록 반환
Public 속성 TargetContext 이 ElementGroupPrototype의 대상 ElementGroupContext 개체 반환
Public 속성 TargetRootElementIds 대상 컨텍스트에서 루트 요소 ID의 읽기 전용 목록 반환
Public 속성 TopLevelProtoGroup 이 ElementGroupPrototype이 나타내는 그룹의 프로토타입
Public 속성 UserData 가장 바깥쪽 요소 그룹의 사용자 정의 데이터 개체

위쪽

메서드

  이름 설명
Public 메서드 CanCreateElementGroup(Partition) 이 프로토타입 요소 그룹이 지정된 파티션에 프로제니터 요소 그룹의 복제본을 만들 수 있습니까?
Public 메서드 CanCreateElementGroup(Store) 이 프로토타입 요소 그룹이 지정된 저장소에 프로제니터 요소 그룹의 복제본을 만들 수 있습니까?
Public 메서드 CanCreateElementGroup(Partition, IElementPartitionMapper) 이 프로토타입 요소 그룹이 지정된 파티션에 프로제니터 요소 그룹의 복제본을 만들 수 있습니까?
Public 메서드 CreateElementGroup(Partition) 프로제니터 요소 그룹의 복제본을 만듭니다.
Public 메서드 CreateElementGroup(Store) 프로제니터 요소 그룹의 복제본을 만듭니다.
Public 메서드 CreateElementGroup(Partition, IElementPartitionMapper) 프로제니터 요소 그룹의 복제본을 만듭니다.
Public 메서드 Equals 지정한 개체와 현재 개체가 같은지 여부를 확인합니다. (Object에서 상속됨)
Public 메서드 GetHashCode 기본 해시 함수로 작동합니다. (Object에서 상속됨)
Public 메서드 GetObjectData 이 개체를 serialize하는 데 필요한 데이터로 serialization 정보를 채웁니다.
Public 메서드 GetProtoElement 지정된 ID에 해당하는 ProtoElement를 가져옵니다.
Public 메서드 GetProtoLink 지정된 ID에 해당하는 ProtoLink를 가져옵니다.
Public 메서드 GetProtoLinks 전달된 DomainRoleId에서 수행하는 전달된 ProtoElementBase를 포함하는 ProtoLink 개체의 IList를 반환합니다.
Public 메서드정적 멤버 GetReconstitutedElement 소스 ModelElement의 guid가 지정된 다시 구성된 ModelElement를 반환합니다.
Public 메서드 GetSourceRootElementId 지정된 대상 루트 ModelElement ID에 해당하는 소스 루트 ModelElement의 ID를 가져옵니다.발견되지 않을 경우 Guid.Empty가 반환됩니다.
Public 메서드 GetType 현재 인스턴스의 Type을 가져옵니다. (Object에서 상속됨)
Public 메서드 IsInRole 전달된 ProtoElementBase가 이 ElementGroupPrototype에 전달된 역할에서 수행하는 경우 true를 반환합니다.
Public 메서드 ResolveProtoLinks 전달된 DomainRoleId에서 역할을 하는 ProtoElements로의 ProtoLinks의 전달된 IList를 확인합니다.
Public 메서드 ToString() 현재 개체를 나타내는 문자열을 반환합니다. (Object에서 상속됨)
Public 메서드 ToString(Partition) 제공된 파티션에 DomainClass 정의가 주어진 경우 이 ElementGroupPrototype의 Elements 및 ElementLinks 이름을 덤프합니다.

위쪽

필드

  이름 설명
Public 필드정적 멤버 CreatingKey 컨텍스트 정보 검색을 위한 키
Public 필드정적 멤버 DefaultDataFormatName ElementGroupPrototype에 대한 기본 데이터 형식 이름입니다.
Public 필드정적 멤버 ElementGroupIdDictionary Element ID 사전 및 루트 요소(Id) 목록에 대한 TargetContext ElementGroupContext에서 사용되는 키입니다.
Public 필드정적 멤버 RootElementIdList RootElement Id 목록 및 루트 요소(Id) 목록에 대한 소스 및 대상 컨텍스트 ElementGroupContext에서 사용되는 키입니다.
Public 필드정적 멤버 RootElementList RootElement 목록 및 루트 요소 목록에 대한 소스 및 대상 컨텍스트 ElementGroupContext에서 사용되는 키입니다.

위쪽

명시적 인터페이스 구현

  이름 설명
명시적 인터페이스 구현Private 메서드 IDeserializationCallback.OnDeserialization 그래프가 완전히 로드될 때 개체를 deserialize합니다.

위쪽

설명

(EGP) ElementGroupPrototype 패턴 요소와 병합할에서 요소 및 링크의 새 집합을 만드는 데 사용할 수 있는 링크가 포함 되어 있습니다. 병합 중 EGP는 만드는 데 사용 되는 ElementGroup, 대상 모델의 요소에 연결 되는.

EGPs는 다음과 같은 용도로 사용 됩니다.

  • 끌기 작업에 정보를 전달 하려면

  • 클립보드에 정보를 저장 하려면

  • 도구 상자에서 개체의 패턴을 저장 합니다.

자세한 내용은 방법: 프로그램 복사 및 붙여넣기 동작 - 리디렉션방법: 끌어서 놓기 처리기 추가를 참조하십시오.

스레드로부터의 안전성

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

참고 항목

참조

Microsoft.VisualStudio.Modeling 네임스페이스