RootDesignerSerializerAttribute Klasa

Definicja

Przestroga

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

Przestroga

RootDesignerSerializerAttribute has been deprecated. Use DesignerSerializerAttribute instead. For example, to specify a root designer for CodeDom, use DesignerSerializerAttribute(...,typeof(TypeCodeDomSerializer)) instead.

Przestroga

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

Przestroga

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

Wskazuje serializator podstawowy do użycia dla obiektu projektanta głównego. Klasa ta nie może być dziedziczona.

public ref class RootDesignerSerializerAttribute sealed : 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)]
[System.Obsolete("RootDesignerSerializerAttribute has been deprecated. Use DesignerSerializerAttribute instead. For example, to specify a root designer for CodeDom, use DesignerSerializerAttribute(...,typeof(TypeCodeDomSerializer)) instead.")]
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)]
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")>]
type RootDesignerSerializerAttribute = class
    inherit Attribute
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Interface, AllowMultiple=true, Inherited=true)>]
[<System.Obsolete("RootDesignerSerializerAttribute has been deprecated. Use DesignerSerializerAttribute instead. For example, to specify a root designer for CodeDom, use DesignerSerializerAttribute(...,typeof(TypeCodeDomSerializer)) instead.")>]
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
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Interface, AllowMultiple=true, Inherited=true)>]
type RootDesignerSerializerAttribute = class
    inherit Attribute
Public NotInheritable Class RootDesignerSerializerAttribute
Inherits Attribute
Dziedziczenie
RootDesignerSerializerAttribute
Atrybuty

Przykłady

Poniższy przykładowy kod dotyczy RootDesignerSerializerAttribute składnika.

   [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

Uwagi

RootDesignerSerializerAttribute wskazuje serializator do użycia, gdy menedżer serializacji serializuje dokument projektowy i czy określony serializator obsługuje automatyczne ponowne ładowanie dokumentu projektowego bez uprzedniego całkowitego dysponowania dokumentu.

Ten atrybut zawiera następujące istotne elementy członkowskie:

  • SerializerTypeName wskazuje, który obiekt serializacji ma być używany do serializacji klasy w czasie projektowania.

  • SerializerBaseTypeName wskazuje w pełni kwalifikowaną nazwę typu podstawowego obiektu serializacji.

  • Reloadable wskazuje, czy serializator obsługuje ponowne ładowanie dokumentu projektowego bez interakcji użytkownika w celu otwarcia nowego widoku projektanta.

Konstruktory

RootDesignerSerializerAttribute(String, String, Boolean)
Przestarzałe.
Przestarzałe.
Przestarzałe.
Przestarzałe.

Inicjuje RootDesignerSerializerAttribute nowe wystąpienie klasy przy użyciu określonych atrybutów.

RootDesignerSerializerAttribute(String, Type, Boolean)
Przestarzałe.
Przestarzałe.
Przestarzałe.
Przestarzałe.

Inicjuje RootDesignerSerializerAttribute nowe wystąpienie klasy przy użyciu określonych atrybutów.

RootDesignerSerializerAttribute(Type, Type, Boolean)
Przestarzałe.
Przestarzałe.
Przestarzałe.
Przestarzałe.

Inicjuje RootDesignerSerializerAttribute nowe wystąpienie klasy przy użyciu określonych atrybutów.

Właściwości

Reloadable
Przestarzałe.
Przestarzałe.
Przestarzałe.
Przestarzałe.

Pobiera wartość wskazującą, czy główny serializator obsługuje ponowne ładowanie dokumentu projektowego bez uprzedniego zdysponowania hosta projektanta.

SerializerBaseTypeName
Przestarzałe.
Przestarzałe.
Przestarzałe.
Przestarzałe.

Pobiera w pełni kwalifikowaną nazwę typu podstawowego serializatora.

SerializerTypeName
Przestarzałe.
Przestarzałe.
Przestarzałe.
Przestarzałe.

Pobiera w pełni kwalifikowaną nazwę typu serializatora.

TypeId
Przestarzałe.
Przestarzałe.
Przestarzałe.
Przestarzałe.

Pobiera unikatowy identyfikator tego typu atrybutu.

Metody

Equals(Object)
Przestarzałe.
Przestarzałe.
Przestarzałe.
Przestarzałe.

Zwraca wartość wskazującą, czy to wystąpienie jest równe podanemu obiektowi.

(Odziedziczone po Attribute)
GetHashCode()
Przestarzałe.
Przestarzałe.
Przestarzałe.
Przestarzałe.

Zwraca wartość skrótu dla tego wystąpienia.

(Odziedziczone po Attribute)
GetType()
Przestarzałe.
Przestarzałe.
Przestarzałe.
Przestarzałe.

Type Pobiera bieżące wystąpienie.

(Odziedziczone po Object)
IsDefaultAttribute()
Przestarzałe.
Przestarzałe.
Przestarzałe.
Przestarzałe.

W przypadku zastąpienia w klasie pochodnej wskazuje, czy wartość tego wystąpienia jest wartością domyślną klasy pochodnej.

(Odziedziczone po Attribute)
Match(Object)
Przestarzałe.
Przestarzałe.
Przestarzałe.
Przestarzałe.

W przypadku zastąpienia w klasie pochodnej zwraca wartość wskazującą, czy to wystąpienie jest równe określonemu obiektowi.

(Odziedziczone po Attribute)
MemberwiseClone()
Przestarzałe.
Przestarzałe.
Przestarzałe.
Przestarzałe.

Tworzy płytkią kopię bieżącego Objectelementu .

(Odziedziczone po Object)
ToString()
Przestarzałe.
Przestarzałe.
Przestarzałe.
Przestarzałe.

Zwraca ciąg reprezentujący bieżący obiekt.

(Odziedziczone po Object)

Jawne implementacje interfejsu

_Attribute.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr)
Przestarzałe.
Przestarzałe.
Przestarzałe.
Przestarzałe.

Zestaw nazw jest mapowany na odpowiedni zestaw identyfikatorów wysyłania.

(Odziedziczone po Attribute)
_Attribute.GetTypeInfo(UInt32, UInt32, IntPtr)
Przestarzałe.
Przestarzałe.
Przestarzałe.
Przestarzałe.

Pobiera informacje o typie obiektu, którego można użyć do pobrania informacji o typie interfejsu.

(Odziedziczone po Attribute)
_Attribute.GetTypeInfoCount(UInt32)
Przestarzałe.
Przestarzałe.
Przestarzałe.
Przestarzałe.

Pobiera informację o liczbie typów interfejsów, jakie zawiera obiekt (0 lub 1).

(Odziedziczone po Attribute)
_Attribute.Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr)
Przestarzałe.
Przestarzałe.
Przestarzałe.
Przestarzałe.

Umożliwia dostęp do właściwości i metod udostępnianych przez obiekt.

(Odziedziczone po Attribute)

Dotyczy

Zobacz też