XamlMember Constructeurs
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Initialise une nouvelle instance de la classe XamlMember.
Surcharges
XamlMember(EventInfo, XamlSchemaContext) |
Initialise une nouvelle instance de la classe XamlMember avec le système de type CLR EventInfo et un XamlSchemaContext. |
XamlMember(PropertyInfo, XamlSchemaContext) |
Initialise une nouvelle instance de la classe XamlMember avec le système de type CLR PropertyInfo et un XamlSchemaContext. |
XamlMember(EventInfo, XamlSchemaContext, XamlMemberInvoker) |
Initialise une nouvelle instance de la classe XamlMember avec le système de type CLR EventInfo et un XamlSchemaContext, notamment les informations sur XamlMemberInvoker. |
XamlMember(PropertyInfo, XamlSchemaContext, XamlMemberInvoker) |
Initialise une nouvelle instance de la classe XamlMember avec la réflexion PropertyInfo et un XamlSchemaContext, notamment les informations sur XamlMemberInvoker. |
XamlMember(String, MethodInfo, XamlSchemaContext) |
Initialise une nouvelle instance de la classe XamlMember pour un XamlMember qui représente un événement pouvant être attaché. |
XamlMember(String, XamlType, Boolean) |
Initialise une nouvelle instance de la classe XamlMember, en utilisant un nom de chaîne et des informations sur le XamlType déclarant. Un XamlMember construit avec cette signature présente des limitations importantes. |
XamlMember(String, MethodInfo, MethodInfo, XamlSchemaContext) |
Initialise une nouvelle instance de la classe XamlMember pour un XamlMember qui représente une propriété pouvant être jointe. |
XamlMember(String, MethodInfo, XamlSchemaContext, XamlMemberInvoker) |
Initialise une nouvelle instance de la classe XamlMember pour un XamlMember qui représente un événement pouvant être attaché, notamment des informations sur XamlMemberInvoker. |
XamlMember(String, MethodInfo, MethodInfo, XamlSchemaContext, XamlMemberInvoker) |
Initialise une nouvelle instance de la classe XamlMember pour un XamlMember qui représente une propriété pouvant être jointe, notamment les informations sur XamlMemberInvoker. |
XamlMember(EventInfo, XamlSchemaContext)
Initialise une nouvelle instance de la classe XamlMember avec le système de type CLR EventInfo et un XamlSchemaContext.
public:
XamlMember(System::Reflection::EventInfo ^ eventInfo, System::Xaml::XamlSchemaContext ^ schemaContext);
public XamlMember (System.Reflection.EventInfo eventInfo, System.Xaml.XamlSchemaContext schemaContext);
new System.Xaml.XamlMember : System.Reflection.EventInfo * System.Xaml.XamlSchemaContext -> System.Xaml.XamlMember
Public Sub New (eventInfo As EventInfo, schemaContext As XamlSchemaContext)
Paramètres
- schemaContext
- XamlSchemaContext
Contexte XamlSchemaContext qui qualifie le membre.
Remarques
Utilisez ce constructeur si le membre représente un événement (propriété de point de connexion du gestionnaire d’événements).
S’applique à
XamlMember(PropertyInfo, XamlSchemaContext)
Initialise une nouvelle instance de la classe XamlMember avec le système de type CLR PropertyInfo et un XamlSchemaContext.
public:
XamlMember(System::Reflection::PropertyInfo ^ propertyInfo, System::Xaml::XamlSchemaContext ^ schemaContext);
public XamlMember (System.Reflection.PropertyInfo propertyInfo, System.Xaml.XamlSchemaContext schemaContext);
new System.Xaml.XamlMember : System.Reflection.PropertyInfo * System.Xaml.XamlSchemaContext -> System.Xaml.XamlMember
Public Sub New (propertyInfo As PropertyInfo, schemaContext As XamlSchemaContext)
Paramètres
- propertyInfo
- PropertyInfo
Système de type CLR PropertyInfo qui représente le membre de propriété.
- schemaContext
- XamlSchemaContext
Contexte XamlSchemaContext qui qualifie le membre.
Remarques
Utilisez ce constructeur si le membre représente une propriété (et n’est pas spécifiquement une connexion de gestionnaire d’événements).
S’applique à
XamlMember(EventInfo, XamlSchemaContext, XamlMemberInvoker)
Initialise une nouvelle instance de la classe XamlMember avec le système de type CLR EventInfo et un XamlSchemaContext, notamment les informations sur XamlMemberInvoker.
public:
XamlMember(System::Reflection::EventInfo ^ eventInfo, System::Xaml::XamlSchemaContext ^ schemaContext, System::Xaml::Schema::XamlMemberInvoker ^ invoker);
public XamlMember (System.Reflection.EventInfo eventInfo, System.Xaml.XamlSchemaContext schemaContext, System.Xaml.Schema.XamlMemberInvoker invoker);
new System.Xaml.XamlMember : System.Reflection.EventInfo * System.Xaml.XamlSchemaContext * System.Xaml.Schema.XamlMemberInvoker -> System.Xaml.XamlMember
Public Sub New (eventInfo As EventInfo, schemaContext As XamlSchemaContext, invoker As XamlMemberInvoker)
Paramètres
- schemaContext
- XamlSchemaContext
Contexte XamlSchemaContext qui qualifie le membre.
- invoker
- XamlMemberInvoker
Implémentation de XamlMemberInvoker qui gère les appels de réflexion au moment de l'exécution en fonction du XamlMember.
Remarques
Utilisez ce constructeur si le membre représente un événement (ou une propriété de point de connexion du gestionnaire d’événements).
S’applique à
XamlMember(PropertyInfo, XamlSchemaContext, XamlMemberInvoker)
Initialise une nouvelle instance de la classe XamlMember avec la réflexion PropertyInfo et un XamlSchemaContext, notamment les informations sur XamlMemberInvoker.
public:
XamlMember(System::Reflection::PropertyInfo ^ propertyInfo, System::Xaml::XamlSchemaContext ^ schemaContext, System::Xaml::Schema::XamlMemberInvoker ^ invoker);
public XamlMember (System.Reflection.PropertyInfo propertyInfo, System.Xaml.XamlSchemaContext schemaContext, System.Xaml.Schema.XamlMemberInvoker invoker);
new System.Xaml.XamlMember : System.Reflection.PropertyInfo * System.Xaml.XamlSchemaContext * System.Xaml.Schema.XamlMemberInvoker -> System.Xaml.XamlMember
Public Sub New (propertyInfo As PropertyInfo, schemaContext As XamlSchemaContext, invoker As XamlMemberInvoker)
Paramètres
- propertyInfo
- PropertyInfo
Système de type CLR PropertyInfo qui représente le membre de propriété.
- schemaContext
- XamlSchemaContext
Contexte XamlSchemaContext qui qualifie le membre.
- invoker
- XamlMemberInvoker
Implémentation de XamlMemberInvoker qui gère les appels de réflexion au moment de l'exécution en fonction du XamlMember.
Remarques
Utilisez ce constructeur uniquement si le membre représente une propriété et s’il ne s’agit pas d’une connexion de gestionnaire d’événements.
S’applique à
XamlMember(String, MethodInfo, XamlSchemaContext)
Initialise une nouvelle instance de la classe XamlMember pour un XamlMember qui représente un événement pouvant être attaché.
public:
XamlMember(System::String ^ attachableEventName, System::Reflection::MethodInfo ^ adder, System::Xaml::XamlSchemaContext ^ schemaContext);
public XamlMember (string attachableEventName, System.Reflection.MethodInfo adder, System.Xaml.XamlSchemaContext schemaContext);
new System.Xaml.XamlMember : string * System.Reflection.MethodInfo * System.Xaml.XamlSchemaContext -> System.Xaml.XamlMember
Public Sub New (attachableEventName As String, adder As MethodInfo, schemaContext As XamlSchemaContext)
Paramètres
- attachableEventName
- String
Nom sous forme de chaîne de l'événement pouvant être attaché.
- adder
- MethodInfo
MethodInfo du système de type CLR pour la méthode Add
du gestionnaire de l'implémentation de stockage du membre pouvant être attaché.
- schemaContext
- XamlSchemaContext
Contexte XamlSchemaContext qui qualifie le membre.
Remarques
Utilisez ce constructeur si le membre représente un membre d’événement attachable.
S’applique à
XamlMember(String, XamlType, Boolean)
Initialise une nouvelle instance de la classe XamlMember, en utilisant un nom de chaîne et des informations sur le XamlType déclarant. Un XamlMember construit avec cette signature présente des limitations importantes.
public:
XamlMember(System::String ^ name, System::Xaml::XamlType ^ declaringType, bool isAttachable);
public XamlMember (string name, System.Xaml.XamlType declaringType, bool isAttachable);
new System.Xaml.XamlMember : string * System.Xaml.XamlType * bool -> System.Xaml.XamlMember
Public Sub New (name As String, declaringType As XamlType, isAttachable As Boolean)
Paramètres
- name
- String
Nom sous forme de chaîne du membre.
- isAttachable
- Boolean
true
pour indiquer que le membre peut être attaché ; sinon, false
.
Exceptions
name
ou declaringType
est null
.
Remarques
Construit XamlMember avec la XamlMember(String, XamlType, Boolean) signature retournée true
pour IsUnknown.
Pour un chemin de chargement qui implique XamlObjectWriter, un tel membre ne peut pas être écrit dans un graphique d’objet. À l’aide de l’implémentation des services XAML .NET Framework, l’appel XamlObjectWriter.WriteStartMember lève une XamlObjectWriterException exception lorsque les rapports true
appropriés XamlMember pour IsUnknown.
Vous ne devez pas construire un XamlMember avec IsUnknown true
, sauf si votre implémentation peut gérer les exceptions à partir de XamlObjectWriter, ou vous avez d’autres façons d’ajuster le XamlObjectWriter comportement. Par exemple, une ou plusieurs des conditions suivantes peuvent être vraies pour votre implémentation :
Le contexte de schéma XAML est disponible ultérieurement.
Vous utilisez un modèle d’appelant de membre.
Vous remplacez XamlObjectWriter.WriteStartMember délibérément dans un enregistreur XAML personnalisé.
S’applique à
XamlMember(String, MethodInfo, MethodInfo, XamlSchemaContext)
Initialise une nouvelle instance de la classe XamlMember pour un XamlMember qui représente une propriété pouvant être jointe.
public:
XamlMember(System::String ^ attachablePropertyName, System::Reflection::MethodInfo ^ getter, System::Reflection::MethodInfo ^ setter, System::Xaml::XamlSchemaContext ^ schemaContext);
public XamlMember (string attachablePropertyName, System.Reflection.MethodInfo getter, System.Reflection.MethodInfo setter, System.Xaml.XamlSchemaContext schemaContext);
new System.Xaml.XamlMember : string * System.Reflection.MethodInfo * System.Reflection.MethodInfo * System.Xaml.XamlSchemaContext -> System.Xaml.XamlMember
Public Sub New (attachablePropertyName As String, getter As MethodInfo, setter As MethodInfo, schemaContext As XamlSchemaContext)
Paramètres
- attachablePropertyName
- String
Nom sous forme de chaîne de la propriété pouvant être attachée.
- getter
- MethodInfo
MethodInfo du système de type CLR pour l'accesseur get
de l'implémentation de stockage du membre pouvant être attaché.
- setter
- MethodInfo
MethodInfo du système de type CLR pour l'accesseur set
de l'implémentation de stockage du membre pouvant être attaché.
- schemaContext
- XamlSchemaContext
Contexte XamlSchemaContext qui qualifie le membre.
Remarques
Utilisez ce constructeur si le membre représente une propriété attachable.
S’applique à
XamlMember(String, MethodInfo, XamlSchemaContext, XamlMemberInvoker)
Initialise une nouvelle instance de la classe XamlMember pour un XamlMember qui représente un événement pouvant être attaché, notamment des informations sur XamlMemberInvoker.
public:
XamlMember(System::String ^ attachableEventName, System::Reflection::MethodInfo ^ adder, System::Xaml::XamlSchemaContext ^ schemaContext, System::Xaml::Schema::XamlMemberInvoker ^ invoker);
public XamlMember (string attachableEventName, System.Reflection.MethodInfo adder, System.Xaml.XamlSchemaContext schemaContext, System.Xaml.Schema.XamlMemberInvoker invoker);
new System.Xaml.XamlMember : string * System.Reflection.MethodInfo * System.Xaml.XamlSchemaContext * System.Xaml.Schema.XamlMemberInvoker -> System.Xaml.XamlMember
Public Sub New (attachableEventName As String, adder As MethodInfo, schemaContext As XamlSchemaContext, invoker As XamlMemberInvoker)
Paramètres
- attachableEventName
- String
Nom sous forme de chaîne de l'événement pouvant être attaché.
- adder
- MethodInfo
MethodInfo du système de type CLR pour la méthode Add
du gestionnaire de l'implémentation de stockage du membre pouvant être attaché.
- schemaContext
- XamlSchemaContext
Contexte XamlSchemaContext qui qualifie le membre.
- invoker
- XamlMemberInvoker
Implémentation de XamlMemberInvoker qui gère les appels de réflexion au moment de l'exécution en fonction du XamlMember.
Remarques
Utilisez ce constructeur si le membre représente un membre d’événement attachable.
S’applique à
XamlMember(String, MethodInfo, MethodInfo, XamlSchemaContext, XamlMemberInvoker)
Initialise une nouvelle instance de la classe XamlMember pour un XamlMember qui représente une propriété pouvant être jointe, notamment les informations sur XamlMemberInvoker.
public:
XamlMember(System::String ^ attachablePropertyName, System::Reflection::MethodInfo ^ getter, System::Reflection::MethodInfo ^ setter, System::Xaml::XamlSchemaContext ^ schemaContext, System::Xaml::Schema::XamlMemberInvoker ^ invoker);
public XamlMember (string attachablePropertyName, System.Reflection.MethodInfo getter, System.Reflection.MethodInfo setter, System.Xaml.XamlSchemaContext schemaContext, System.Xaml.Schema.XamlMemberInvoker invoker);
new System.Xaml.XamlMember : string * System.Reflection.MethodInfo * System.Reflection.MethodInfo * System.Xaml.XamlSchemaContext * System.Xaml.Schema.XamlMemberInvoker -> System.Xaml.XamlMember
Public Sub New (attachablePropertyName As String, getter As MethodInfo, setter As MethodInfo, schemaContext As XamlSchemaContext, invoker As XamlMemberInvoker)
Paramètres
- attachablePropertyName
- String
Nom sous forme de chaîne de la propriété pouvant être attachée.
- getter
- MethodInfo
MethodInfo du système de type CLR pour l'accesseur get
de l'implémentation de stockage du membre pouvant être attaché.
- setter
- MethodInfo
MethodInfo du système de type CLR pour l'accesseur set
de l'implémentation de stockage du membre pouvant être attaché.
- schemaContext
- XamlSchemaContext
Contexte XamlSchemaContext qui qualifie le membre.
- invoker
- XamlMemberInvoker
Implémentation de XamlMemberInvoker qui gère les appels de réflexion au moment de l'exécution en fonction du XamlMember.
Remarques
Utilisez ce constructeur si le membre représente un membre de propriété pouvant être attaché.