共用方式為


PropertyInfoExtensions.GetSetMethod 方法

定義

多載

GetSetMethod(PropertyInfo)
GetSetMethod(PropertyInfo, Boolean)

GetSetMethod(PropertyInfo)

來源:
TypeExtensions.cs
來源:
TypeExtensions.cs
來源:
TypeExtensions.cs
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)

來源:
TypeExtensions.cs
來源:
TypeExtensions.cs
來源:
TypeExtensions.cs
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

傳回

適用於