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