RootDesignerSerializerAttribute 클래스

정의

주의

This attribute has been deprecated. Use DesignerSerializerAttribute instead. For example, to specify a root designer for CodeDom, use DesignerSerializerAttribute(...,typeof(TypeCodeDomSerializer)). http://go.microsoft.com/fwlink/?linkid=14202

주의

This attribute has been deprecated. Use DesignerSerializerAttribute instead. For example, to specify a root designer for CodeDom, use DesignerSerializerAttribute(...,typeof(TypeCodeDomSerializer)). https://go.microsoft.com/fwlink/?linkid=14202

루트 디자이너 개체에 사용할 기본 serializer를 나타냅니다. 이 클래스는 상속할 수 없습니다.

public ref class RootDesignerSerializerAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Interface, AllowMultiple=true, Inherited=true)]
public sealed class RootDesignerSerializerAttribute : Attribute
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Interface, AllowMultiple=true, Inherited=true)]
[System.Obsolete("This attribute has been deprecated. Use DesignerSerializerAttribute instead.  For example, to specify a root designer for CodeDom, use DesignerSerializerAttribute(...,typeof(TypeCodeDomSerializer)).  http://go.microsoft.com/fwlink/?linkid=14202")]
public sealed class RootDesignerSerializerAttribute : Attribute
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Interface, AllowMultiple=true, Inherited=true)]
[System.Obsolete("This attribute has been deprecated. Use DesignerSerializerAttribute instead.  For example, to specify a root designer for CodeDom, use DesignerSerializerAttribute(...,typeof(TypeCodeDomSerializer)).  https://go.microsoft.com/fwlink/?linkid=14202")]
public sealed class RootDesignerSerializerAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Interface, AllowMultiple=true, Inherited=true)>]
type RootDesignerSerializerAttribute = class
    inherit Attribute
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Interface, AllowMultiple=true, Inherited=true)>]
[<System.Obsolete("This attribute has been deprecated. Use DesignerSerializerAttribute instead.  For example, to specify a root designer for CodeDom, use DesignerSerializerAttribute(...,typeof(TypeCodeDomSerializer)).  http://go.microsoft.com/fwlink/?linkid=14202")>]
type RootDesignerSerializerAttribute = class
    inherit Attribute
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Interface, AllowMultiple=true, Inherited=true)>]
[<System.Obsolete("This attribute has been deprecated. Use DesignerSerializerAttribute instead.  For example, to specify a root designer for CodeDom, use DesignerSerializerAttribute(...,typeof(TypeCodeDomSerializer)).  https://go.microsoft.com/fwlink/?linkid=14202")>]
type RootDesignerSerializerAttribute = class
    inherit Attribute
Public NotInheritable Class RootDesignerSerializerAttribute
Inherits Attribute
상속
RootDesignerSerializerAttribute
특성

예제

다음 예제 코드는 구성 요소에 RootDesignerSerializerAttribute 적용됩니다.

   [DesignerSerializer(CodeDomSerializerSample::MyCodeDomSerializer::typeid,
      CodeDomSerializer::typeid)]
   public ref class MyComponent: public Component
   {
   private:
      String^ localProperty;

   public:
      MyComponent()
      {
         localProperty = "Component Property Value";
      }

      property String^ LocalProperty 
      {
         String^ get()
         {
            return localProperty;
         }
         void set( String^ value )
         {
            localProperty = value;
         }
      }
   };
}
[DesignerSerializer(typeof(MyCodeDomSerializer), typeof(CodeDomSerializer))]
public class MyComponent : Component {
    private string localProperty = "Component Property Value";
    public string LocalProperty {
        get {
            return localProperty;
        }
        set {
            localProperty = value;
        }
    }
}
<DesignerSerializer(GetType(MyCodeDomSerializer), GetType(CodeDomSerializer))> _
Public Class MyComponent
   Inherits Component
   Private localProperty As String = "Component Property Value"

   Public Property LocalProp() As String
      Get
         Return localProperty
      End Get
      Set(ByVal Value As String)
         localProperty = Value
      End Set
   End Property
End Class

설명

RootDesignerSerializerAttribute 는 serialization 관리자가 디자인 문서를 직렬화할 때 사용할 serializer를 나타내며, 지정한 serializer가 먼저 문서를 완전히 삭제하지 않고 디자인 문서의 자동 다시 로드를 지원하는지 여부를 나타냅니다.

이 특성에는 다음과 같은 중요한 멤버가 포함됩니다.

  • SerializerTypeName 는 디자인 타임에 클래스를 serialize하는 데 사용할 serialization 개체를 나타냅니다.

  • SerializerBaseTypeName 는 serialization 개체의 기본 형식의 정규화된 이름을 나타냅니다.

  • Reloadable 는 직렬 변환기가 사용자 조작 없이 디자인 문서를 다시 로드하여 새 디자이너 뷰를 열 수 있는지 여부를 나타냅니다.

생성자

Name Description
RootDesignerSerializerAttribute(String, String, Boolean)
사용되지 않음.
사용되지 않음.

지정된 특성을 사용하여 클래스의 RootDesignerSerializerAttribute 새 인스턴스를 초기화합니다.

RootDesignerSerializerAttribute(String, Type, Boolean)
사용되지 않음.
사용되지 않음.

지정된 특성을 사용하여 클래스의 RootDesignerSerializerAttribute 새 인스턴스를 초기화합니다.

RootDesignerSerializerAttribute(Type, Type, Boolean)
사용되지 않음.
사용되지 않음.

지정된 특성을 사용하여 클래스의 RootDesignerSerializerAttribute 새 인스턴스를 초기화합니다.

속성

Name Description
Reloadable
사용되지 않음.
사용되지 않음.

먼저 디자이너 호스트를 삭제하지 않고 루트 직렬 변환기가 디자인 문서의 다시 로드를 지원하는지 여부를 나타내는 값을 가져옵니다.

SerializerBaseTypeName
사용되지 않음.
사용되지 않음.

serializer의 기본 형식에 대한 정규화된 형식 이름을 가져옵니다.

SerializerTypeName
사용되지 않음.
사용되지 않음.

serializer의 정규화된 형식 이름을 가져옵니다.

TypeId
사용되지 않음.
사용되지 않음.

이 특성 형식에 대한 고유 ID를 가져옵니다.

메서드

Name Description
Equals(Object)
사용되지 않음.
사용되지 않음.

이 인스턴스가 지정된 개체와 같은지 여부를 나타내는 값을 반환합니다.

(다음에서 상속됨 Attribute)
GetHashCode()
사용되지 않음.
사용되지 않음.

이 인스턴스의 해시 코드를 반환합니다.

(다음에서 상속됨 Attribute)
GetType()
사용되지 않음.
사용되지 않음.

현재 인스턴스의 Type 가져옵니다.

(다음에서 상속됨 Object)
IsDefaultAttribute()
사용되지 않음.
사용되지 않음.

파생 클래스에서 재정의되는 경우 이 인스턴스의 값이 파생 클래스의 기본값인지 여부를 나타냅니다.

(다음에서 상속됨 Attribute)
Match(Object)
사용되지 않음.
사용되지 않음.

파생 클래스에서 재정의되는 경우 이 인스턴스가 지정된 개체와 같은지 여부를 나타내는 값을 반환합니다.

(다음에서 상속됨 Attribute)
MemberwiseClone()
사용되지 않음.
사용되지 않음.

현재 Object단순 복사본을 만듭니다.

(다음에서 상속됨 Object)
ToString()
사용되지 않음.
사용되지 않음.

현재 개체를 나타내는 문자열을 반환합니다.

(다음에서 상속됨 Object)

명시적 인터페이스 구현

Name Description
_Attribute.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr)
사용되지 않음.
사용되지 않음.

이름 집합을 해당 디스패치 식별자 집합에 매핑합니다.

(다음에서 상속됨 Attribute)
_Attribute.GetTypeInfo(UInt32, UInt32, IntPtr)
사용되지 않음.
사용되지 않음.

인터페이스의 형식 정보를 가져오는 데 사용할 수 있는 개체의 형식 정보를 검색합니다.

(다음에서 상속됨 Attribute)
_Attribute.GetTypeInfoCount(UInt32)
사용되지 않음.
사용되지 않음.

개체가 제공하는 형식 정보 인터페이스의 수를 검색합니다(0 또는 1).

(다음에서 상속됨 Attribute)
_Attribute.Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr)
사용되지 않음.
사용되지 않음.

개체에 의해 노출되는 속성 및 메서드에 대한 액세스를 제공합니다.

(다음에서 상속됨 Attribute)

적용 대상

추가 정보