XamlMember Konstruktory
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Inicializuje novou instanci XamlMember třídy.
Přetížení
XamlMember(EventInfo, XamlSchemaContext)
Inicializuje novou instanci XamlMember třídy pomocí systému EventInfo typů CLR a XamlSchemaContexta .
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)
Parametry
- schemaContext
- XamlSchemaContext
Kontext XamlSchemaContext , který kvalifikuje člena.
Poznámky
Tento konstruktor použijte, pokud člen představuje událost (vlastnost connection-point obslužné rutiny události).
Platí pro
XamlMember(PropertyInfo, XamlSchemaContext)
Inicializuje novou instanci XamlMember třídy pomocí systému PropertyInfo typů CLR a XamlSchemaContexta .
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)
Parametry
- propertyInfo
- PropertyInfo
Systém PropertyInfo typů CLR, který představuje člena vlastnosti.
- schemaContext
- XamlSchemaContext
Kontext XamlSchemaContext , který kvalifikuje člena.
Poznámky
Tento konstruktor použijte, pokud člen představuje vlastnost (a konkrétně není připojení obslužné rutiny události).
Platí pro
XamlMember(EventInfo, XamlSchemaContext, XamlMemberInvoker)
Inicializuje novou instanci XamlMember třídy pomocí systému EventInfo typů CLR a XamlSchemaContextvčetně XamlMemberInvoker informací.
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)
Parametry
- schemaContext
- XamlSchemaContext
Kontext XamlSchemaContext , který kvalifikuje člena.
- invoker
- XamlMemberInvoker
Implementace XamlMemberInvoker , která zpracovává volání reflexe za běhu proti XamlMember.
Poznámky
Tento konstruktor použijte, pokud člen představuje událost (nebo vlastnost spojovacího bodu obslužné rutiny události).
Platí pro
XamlMember(PropertyInfo, XamlSchemaContext, XamlMemberInvoker)
Inicializuje novou instanci XamlMember třídy pomocí reflexe PropertyInfo a XamlSchemaContextvčetně XamlMemberInvoker informací.
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)
Parametry
- propertyInfo
- PropertyInfo
Systém PropertyInfo typů CLR, který představuje člena vlastnosti.
- schemaContext
- XamlSchemaContext
Kontext XamlSchemaContext , který kvalifikuje člena.
- invoker
- XamlMemberInvoker
Implementace XamlMemberInvoker , která zpracovává volání volání za běhu proti XamlMember.
Poznámky
Tento konstruktor použijte pouze v případě, že člen představuje vlastnost a pokud není připojení obslužné rutiny události.
Platí pro
XamlMember(String, MethodInfo, XamlSchemaContext)
Inicializuje novou instanci XamlMember třídy, XamlMember která představuje připojitelnou událost.
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)
Parametry
- attachableEventName
- String
Název řetězce připojitelné události.
- adder
- MethodInfo
Systém MethodInfo typů CLR pro metodu obslužné rutiny Add
implementace backingu připojitelného člena.
- schemaContext
- XamlSchemaContext
Kontext XamlSchemaContext , který kvalifikuje člena.
Poznámky
Tento konstruktor použijte, pokud člen představuje připojitelný člen události.
Platí pro
XamlMember(String, XamlType, Boolean)
Inicializuje novou instanci XamlMember třídy pomocí názvu řetězce a deklaruje XamlType informace. Objekt XamlMember , který je vytvořen s tímto podpisem, má významná omezení.
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)
Parametry
- name
- String
Název řetězce člena.
- isAttachable
- Boolean
true
označit, že člen je připojitelný; v opačném případě . false
Výjimky
name
nebo declaringType
je null
.
Poznámky
Hodnota XamlMember , která je vytvořena s podpisem XamlMember(String, XamlType, Boolean) vrátí true
pro IsUnknown.
Pro cestu načítání, která zahrnuje XamlObjectWriter, takový člen nelze zapsat do objektového grafu. Při implementaci XamlObjectWriter.WriteStartMember služeb XAML rozhraní .NET Framework volání vyvolá, když příslušné XamlMember sestavy XamlObjectWriterException true
pro IsUnknown.
Pokud vaše implementace nedokáže zpracovat výjimky z , neměli byste vytvářet XamlMember IsUnknown true
s výjimkou nebo máte jiné způsoby, jak chování upravitXamlObjectWriter.XamlObjectWriter Například jedna nebo více z následujících možností může být pravdivá pro vaši implementaci:
Kontext schématu XAML je k dispozici později.
Použijete vzor volatele člena.
Záměrně přepíšete XamlObjectWriter.WriteStartMember vlastní zapisovač XAML.
Platí pro
XamlMember(String, MethodInfo, MethodInfo, XamlSchemaContext)
Inicializuje novou instanci XamlMember třídy, XamlMember která představuje připojitelnou vlastnost.
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)
Parametry
- attachablePropertyName
- String
Název řetězce připojitelné vlastnosti.
- getter
- MethodInfo
Systém MethodInfo typů CLR pro přístup k get
implementaci backingu připojitelného člena.
- setter
- MethodInfo
Systém MethodInfo typů CLR pro přístup k set
implementaci backingu připojitelného člena.
- schemaContext
- XamlSchemaContext
Kontext XamlSchemaContext , který kvalifikuje člena.
Poznámky
Tento konstruktor použijte, pokud člen představuje připojitelnou vlastnost.
Platí pro
XamlMember(String, MethodInfo, XamlSchemaContext, XamlMemberInvoker)
Inicializuje novou instanci XamlMember třídy, XamlMember která představuje připojitelnou událost, včetně XamlMemberInvoker informací.
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)
Parametry
- attachableEventName
- String
Název řetězce připojitelné události.
- adder
- MethodInfo
Systém MethodInfo typů CLR pro metodu obslužné rutiny Add
implementace backingu připojitelného člena.
- schemaContext
- XamlSchemaContext
Kontext XamlSchemaContext , který kvalifikuje člena.
- invoker
- XamlMemberInvoker
Implementace XamlMemberInvoker , která zpracovává volání volání za běhu proti XamlMember.
Poznámky
Tento konstruktor použijte, pokud člen představuje připojitelný člen události.
Platí pro
XamlMember(String, MethodInfo, MethodInfo, XamlSchemaContext, XamlMemberInvoker)
Inicializuje novou instanci XamlMember třídy pro XamlMember , která představuje připojitelnou vlastnost, včetně XamlMemberInvoker informací.
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)
Parametry
- attachablePropertyName
- String
Název řetězce připojitelné vlastnosti.
- getter
- MethodInfo
Systém MethodInfo typů CLR pro přístup k get
implementaci backingu připojitelného člena.
- setter
- MethodInfo
Systém MethodInfo typů CLR pro přístup k set
implementaci backingu připojitelného člena.
- schemaContext
- XamlSchemaContext
Kontext XamlSchemaContext , který kvalifikuje člena.
- invoker
- XamlMemberInvoker
Implementace XamlMemberInvoker , která zpracovává volání volání za běhu proti XamlMember.
Poznámky
Tento konstruktor použijte, pokud člen představuje připojitelný člen vlastnosti.