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
| Nom | Description |
|---|---|
| XamlMember(EventInfo, XamlSchemaContext) |
Initialise une nouvelle instance de la classe à l’aide XamlMember du système EventInfo de type CLR et d’un XamlSchemaContext. |
| XamlMember(PropertyInfo, XamlSchemaContext) |
Initialise une nouvelle instance de la classe à l’aide XamlMember du système PropertyInfo de type CLR et d’un XamlSchemaContext. |
| XamlMember(EventInfo, XamlSchemaContext, XamlMemberInvoker) |
Initialise une nouvelle instance de la classe à l’aide XamlMember du système EventInfo de type CLR et d’un XamlSchemaContext, y compris XamlMemberInvoker des informations. |
| XamlMember(PropertyInfo, XamlSchemaContext, XamlMemberInvoker) |
Initialise une nouvelle instance de la classe à l’aide XamlMember de la réflexion PropertyInfo et d’une XamlSchemaContextinformation, y compris XamlMemberInvoker des informations. |
| XamlMember(String, MethodInfo, XamlSchemaContext) |
Initialise une nouvelle instance de la XamlMember classe pour un XamlMember événement pouvant être attaché. |
| XamlMember(String, XamlType, Boolean) |
Initialise une nouvelle instance de la classe à l’aide XamlMember d’un nom de chaîne et déclare XamlType des informations. Une XamlMember construction avec cette signature présente des limitations significatives. |
| XamlMember(String, MethodInfo, MethodInfo, XamlSchemaContext) |
Initialise une nouvelle instance de la XamlMember classe pour une XamlMember propriété attachable. |
| XamlMember(String, MethodInfo, XamlSchemaContext, XamlMemberInvoker) |
Initialise une nouvelle instance de la XamlMember classe pour un XamlMember événement pouvant être attaché, y compris XamlMemberInvoker des informations. |
| XamlMember(String, MethodInfo, MethodInfo, XamlSchemaContext, XamlMemberInvoker) |
Initialise une nouvelle instance de la XamlMember classe pour une XamlMember propriété pouvant être jointe, y compris XamlMemberInvoker des informations. |
XamlMember(EventInfo, XamlSchemaContext)
Initialise une nouvelle instance de la classe à l’aide XamlMember du système EventInfo de type CLR et d’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 à l’aide XamlMember du système PropertyInfo de type CLR et d’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 PropertyInfo CLR 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 à l’aide XamlMember du système EventInfo de type CLR et d’un XamlSchemaContext, y compris XamlMemberInvoker des informations.
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 XamlMemberInvoker qui gère les appels de réflexion au moment de l’exécution sur le 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 à l’aide XamlMember de la réflexion PropertyInfo et d’une XamlSchemaContextinformation, y compris XamlMemberInvoker des informations.
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 PropertyInfo CLR qui représente le membre de propriété.
- schemaContext
- XamlSchemaContext
Contexte XamlSchemaContext qui qualifie le membre.
- invoker
- XamlMemberInvoker
Implémentation XamlMemberInvoker qui gère les appels d’appel au moment de l’exécution par rapport au 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 XamlMember classe pour un XamlMember é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 de chaîne de l’événement attachable.
- adder
- MethodInfo
Système de type MethodInfo CLR pour la méthode de gestionnaire Add de l’implémentation de stockage du membre attachable.
- 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 à l’aide XamlMember d’un nom de chaîne et déclare XamlType des informations. Une XamlMember construction avec cette signature présente des limitations significatives.
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 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
Qui XamlMember est construit avec la XamlMember(String, XamlType, Boolean) signature retourne true pour IsUnknown.
Pour un chemin de chargement impliquant 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 fois les rapports true pertinents XamlMember pour IsUnknown.
Vous ne devez pas construire un XamlMember avec IsUnknowntrue , 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, un ou plusieurs des éléments suivants peuvent être vrais de 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 XamlMember classe pour une XamlMember propriété attachable.
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 de chaîne de la propriété attachable.
- getter
- MethodInfo
Système de type MethodInfo CLR pour l’accesseur get de l’implémentation de stockage du membre attachable.
- setter
- MethodInfo
Système de type MethodInfo CLR pour l’accesseur set de l’implémentation de stockage du membre attachable.
- 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 XamlMember classe pour un XamlMember événement pouvant être attaché, y compris XamlMemberInvoker des informations.
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 de chaîne de l’événement attachable.
- adder
- MethodInfo
Système de type MethodInfo CLR pour la méthode de gestionnaire Add de l’implémentation de stockage du membre attachable.
- schemaContext
- XamlSchemaContext
Contexte XamlSchemaContext qui qualifie le membre.
- invoker
- XamlMemberInvoker
Implémentation XamlMemberInvoker qui gère les appels d’appel au moment de l’exécution par rapport au 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 XamlMember classe pour une XamlMember propriété pouvant être jointe, y compris XamlMemberInvoker des informations.
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 de chaîne de la propriété attachable.
- getter
- MethodInfo
Système de type MethodInfo CLR pour l’accesseur get de l’implémentation de stockage du membre attachable.
- setter
- MethodInfo
Système de type MethodInfo CLR pour l’accesseur set de l’implémentation de stockage du membre attachable.
- schemaContext
- XamlSchemaContext
Contexte XamlSchemaContext qui qualifie le membre.
- invoker
- XamlMemberInvoker
Implémentation XamlMemberInvoker qui gère les appels d’appel au moment de l’exécution par rapport au XamlMember.
Remarques
Utilisez ce constructeur si le membre représente un membre de propriété attachable.