NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Type.GetConstructor

Gets a specific constructor of the current Type.

Overload List

Searches for a constructor whose parameters match the specified argument types and modifiers, using the specified binding constraints and the specified calling convention.

[Visual Basic] Overloads Public Function GetConstructor(BindingFlags, Binder, CallingConventions, Type(), ParameterModifier()) As ConstructorInfo
[C#] public ConstructorInfo GetConstructor(BindingFlags, Binder, CallingConventions, Type[], ParameterModifier[]);
[C++] public: ConstructorInfo* GetConstructor(BindingFlags, Binder, CallingConventions, Type[], ParameterModifier[]);
[JScript] public function GetConstructor(BindingFlags, Binder, CallingConventions, Type[], ParameterModifier[]) : ConstructorInfo;

Searches for a constructor whose parameters match the types in the specified array.

[Visual Basic] Overloads Public Function GetConstructor(Type()) As ConstructorInfo
[C#] public ConstructorInfo GetConstructor(Type[]);
[C++] public: ConstructorInfo* GetConstructor(Type*[]);
[JScript] public function GetConstructor(Type[]) : ConstructorInfo;

Searches for a constructor whose parameters match the specified argument types and modifiers, using the specified binding constraints.

[Visual Basic] Overloads Public Function GetConstructor(BindingFlags, Binder, Type(), ParameterModifier()) As ConstructorInfo
[C#] public ConstructorInfo GetConstructor(BindingFlags, Binder, Type[], ParameterModifier[]);
[C++] public: ConstructorInfo* GetConstructor(BindingFlags, Binder, Type[], ParameterModifier[]);
[JScript] public function GetConstructor(BindingFlags, Binder, Type[], ParameterModifier[]) : ConstructorInfo;

See Also

Type Class | Type Members | System Namespace