|
Dieser Artikel wurde maschinell übersetzt. Bewegen Sie den Mauszeiger über die Sätze im Artikel, um den Originaltext anzuzeigen. Weitere Informationen
|
Übersetzung
Original
|
ConstructorInfo-Klasse
System.Reflection.MemberInfo
System.Reflection.MethodBase
System.Reflection.ConstructorInfo
Microsoft.JScript.JSConstructor
System.Reflection.Emit.ConstructorBuilder
Namespace: System.Reflection
Assembly: mscorlib (in mscorlib.dll)
Der ConstructorInfo-Typ macht die folgenden Member verfügbar.
| Name | Beschreibung | |
|---|---|---|
![]() ![]() | ConstructorInfo |
| Name | Beschreibung | |
|---|---|---|
![]() ![]() ![]() ![]() | Attributes | |
![]() ![]() ![]() ![]() | CallingConvention | |
![]() ![]() ![]() ![]() | ContainsGenericParameters | |
![]() ![]() | CustomAttributes | |
![]() ![]() ![]() ![]() | DeclaringType | |
![]() ![]() ![]() ![]() | IsAbstract | |
![]() ![]() ![]() ![]() | IsAssembly | |
![]() ![]() ![]() ![]() | IsConstructor | |
![]() ![]() ![]() ![]() | IsFamily | |
![]() ![]() ![]() ![]() | IsFamilyAndAssembly | |
![]() ![]() ![]() ![]() | IsFamilyOrAssembly | |
![]() ![]() ![]() ![]() | IsFinal | |
![]() ![]() ![]() ![]() | IsGenericMethod | |
![]() ![]() ![]() ![]() | IsGenericMethodDefinition | |
![]() ![]() ![]() ![]() | IsHideBySig | |
![]() ![]() ![]() ![]() | IsPrivate | |
![]() ![]() ![]() ![]() | IsPublic | |
![]() | IsSecurityCritical | |
![]() | IsSecuritySafeCritical | |
![]() | IsSecurityTransparent | |
![]() ![]() ![]() ![]() | IsSpecialName | |
![]() ![]() ![]() ![]() | IsStatic | |
![]() ![]() ![]() ![]() | IsVirtual | |
![]() ![]() | MemberType | |
![]() | MetadataToken | |
![]() ![]() ![]() | MethodHandle | |
![]() ![]() | MethodImplementationFlags | |
![]() ![]() | Module | |
![]() ![]() ![]() ![]() | Name | |
![]() ![]() ![]() | ReflectedType |
| Name | Beschreibung | |
|---|---|---|
![]() ![]() ![]() | Equals | In XNA Framework 3.0 wird dieser Member von Object geerbt..Equals(Object). In Portable Klassenbibliothek Portable Klassenbibliothek wird dieser Member von Object geerbt..Equals(Object). |
![]() ![]() ![]() ![]() | Finalize | |
![]() ![]() ![]() | GetCustomAttributes(Boolean) | |
![]() ![]() ![]() | GetCustomAttributes(Type, Boolean) | |
![]() | GetCustomAttributesData | |
![]() ![]() ![]() ![]() | GetGenericArguments | |
![]() ![]() ![]() | GetHashCode | In XNA Framework 3.0 wird dieser Member von Object geerbt..GetHashCode(). In Portable Klassenbibliothek Portable Klassenbibliothek wird dieser Member von Object geerbt..GetHashCode(). |
![]() | GetMethodBody | |
![]() | GetMethodImplementationFlags | |
![]() ![]() ![]() ![]() | GetParameters | |
![]() ![]() ![]() ![]() | GetType | |
![]() ![]() ![]() ![]() | Invoke(Object[]) | |
![]() ![]() ![]() ![]() | Invoke(Object, Object[]) | |
![]() ![]() | Invoke(BindingFlags, Binder, Object[], CultureInfo) | |
![]() ![]() | Invoke(Object, BindingFlags, Binder, Object[], CultureInfo) | |
![]() ![]() ![]() | IsDefined | |
![]() ![]() ![]() ![]() | MemberwiseClone | |
![]() ![]() ![]() ![]() | ToString |
| Name | Beschreibung | |
|---|---|---|
![]() ![]() | Equality | |
![]() ![]() | Inequality |
| Name | Beschreibung | |
|---|---|---|
![]() ![]() | GetCustomAttribute(Type) | Überladen. |
![]() ![]() | GetCustomAttribute(Type, Boolean) | Überladen. |
![]() ![]() | GetCustomAttribute<T>() | Überladen. |
![]() ![]() | GetCustomAttribute<T>(Boolean) | Überladen. |
![]() ![]() | GetCustomAttributes() | Überladen. |
![]() ![]() | GetCustomAttributes(Boolean) | Überladen. |
![]() ![]() | GetCustomAttributes(Type) | Überladen. |
![]() ![]() | GetCustomAttributes(Type, Boolean) | Überladen. |
![]() ![]() | GetCustomAttributes<T>() | Überladen. |
![]() ![]() | GetCustomAttributes<T>(Boolean) | Überladen. |
![]() ![]() | IsDefined(Type) | Überladen. |
![]() ![]() | IsDefined(Type, Boolean) | Überladen. |
| Name | Beschreibung | |
|---|---|---|
![]() ![]() ![]() ![]() ![]() | ConstructorName | |
![]() ![]() ![]() ![]() ![]() | TypeConstructorName |
| Name | Beschreibung | |
|---|---|---|
![]() ![]() | _ConstructorInfo.GetIDsOfNames | |
![]() ![]() | _ConstructorInfo.GetType | |
![]() ![]() | _ConstructorInfo.GetTypeInfo | |
![]() ![]() | _ConstructorInfo.GetTypeInfoCount | |
![]() ![]() | _ConstructorInfo.Invoke | |
![]() ![]() | _ConstructorInfo.Invoke_2 | |
![]() ![]() | _ConstructorInfo.Invoke_3 | |
![]() ![]() | _ConstructorInfo.Invoke_4 | |
![]() ![]() | _ConstructorInfo.Invoke_5 | |
![]() ![]() | _MemberInfo.GetIDsOfNames | |
![]() ![]() | _MemberInfo.GetType | |
![]() ![]() | _MemberInfo.GetTypeInfo | |
![]() ![]() | _MemberInfo.GetTypeInfoCount | |
![]() ![]() | _MemberInfo.Invoke | |
![]() ![]() | _MethodBase.GetIDsOfNames | |
![]() ![]() | _MethodBase.GetType | |
![]() ![]() | _MethodBase.GetTypeInfo | |
![]() ![]() | _MethodBase.GetTypeInfoCount | |
![]() ![]() | _MethodBase.Invoke | |
![]() ![]() | _MethodBase.IsAbstract | |
![]() ![]() | _MethodBase.IsAssembly | |
![]() ![]() | _MethodBase.IsConstructor | |
![]() ![]() | _MethodBase.IsFamily | |
![]() ![]() | _MethodBase.IsFamilyAndAssembly | |
![]() ![]() | _MethodBase.IsFamilyOrAssembly | |
![]() ![]() | _MethodBase.IsFinal | |
![]() ![]() | _MethodBase.IsHideBySig | |
![]() ![]() | _MethodBase.IsPrivate | |
![]() ![]() | _MethodBase.IsPublic | |
![]() ![]() | _MethodBase.IsSpecialName | |
![]() ![]() | _MethodBase.IsStatic | |
![]() ![]() | _MethodBase.IsVirtual |
Hinweis |
|---|
using System; using System.Reflection; using System.Security; public class MyClass1 { public MyClass1(int i){} public static void Main() { try { Type myType = typeof(MyClass1); Type[] types = new Type[1]; types[0] = typeof(int); // Get the public instance constructor that takes an integer parameter. ConstructorInfo constructorInfoObj = myType.GetConstructor( BindingFlags.Instance | BindingFlags.Public, null, CallingConventions.HasThis, types, null); if(constructorInfoObj != null) { Console.WriteLine("The constructor of MyClass1 that is a public " + "instance method and takes an integer as a parameter is: "); Console.WriteLine(constructorInfoObj.ToString()); } else { Console.WriteLine("The constructor of MyClass1 that is a public instance " + "method and takes an integer as a parameter is not available."); } } catch(ArgumentNullException e) { Console.WriteLine("ArgumentNullException: " + e.Message); } catch(ArgumentException e) { Console.WriteLine("ArgumentException: " + e.Message); } catch(SecurityException e) { Console.WriteLine("SecurityException: " + e.Message); } catch(Exception e) { Console.WriteLine("Exception: " + e.Message); } } }
- SecurityAction.InheritanceDemand
für volle Vertrauenswürdigkeit für Erben. Diese Klasse kann nicht von teilweise vertrauenswürdigem Code geerbt werden.
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core-Rolle wird nicht unterstützt), Windows Server 2008 R2 (Server Core-Rolle wird mit SP1 oder höher unterstützt; Itanium wird nicht unterstützt)
.NET Framework unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen für .NET Framework.



