TypeExtensions.GetConstructors 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
GetConstructors(Type) | |
GetConstructors(Type, BindingFlags) |
GetConstructors(Type)
public:
[System::Runtime::CompilerServices::Extension]
static cli::array <System::Reflection::ConstructorInfo ^> ^ GetConstructors(Type ^ type);
public static System.Reflection.ConstructorInfo[] GetConstructors (this Type type);
static member GetConstructors : Type -> System.Reflection.ConstructorInfo[]
<Extension()>
Public Function GetConstructors (type As Type) As ConstructorInfo()
參數
- type
- Type
傳回
適用於
GetConstructors(Type, BindingFlags)
public:
static cli::array <System::Reflection::ConstructorInfo ^> ^ GetConstructors(Type ^ type, System::Reflection::BindingFlags bindingAttr);
public static System.Reflection.ConstructorInfo[] GetConstructors (Type type, System.Reflection.BindingFlags bindingAttr);
static member GetConstructors : Type * System.Reflection.BindingFlags -> System.Reflection.ConstructorInfo[]
Public Shared Function GetConstructors (type As Type, bindingAttr As BindingFlags) As ConstructorInfo()
參數
- type
- Type
- bindingAttr
- BindingFlags