PropertyBuilder.GetIndexParameters 方法
定义
返回此属性的所有索引参数的数组。Returns an array of all the index parameters for the property.
public:
override cli::array <System::Reflection::ParameterInfo ^> ^ GetIndexParameters();
public override System.Reflection.ParameterInfo[] GetIndexParameters ();
override this.GetIndexParameters : unit -> System.Reflection.ParameterInfo[]
Public Overrides Function GetIndexParameters () As ParameterInfo()
返回
ParameterInfo 类型的数组,它包含索引的参数。An array of type ParameterInfo containing the parameters for the indexes.
例外
不支持此方法。This method is not supported.
注解
若要获取某一属性的索引参数,请使用类型 GetType 或 Assembly,从该类型中检索反射属性对象,并调用 PropertyInfo. GetIndexParameters。To get the index parameters of a property, reflect on the property's parent type using Type.GetType or Assembly.GetType, retrieve the Reflection property object from the type, and call PropertyInfo.GetIndexParameters.