DataViewBrowseObject.IReflect.GetProperty Method (String, BindingFlags)
Retrieves the specified property for the type of the current instance, using the specified binding constraints.
Namespace: Microsoft.VisualStudio.Data.Framework
Assembly: Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)
Syntax
'Declaration
Private Function GetProperty ( _
name As String, _
bindingAttr As BindingFlags _
) As PropertyInfo Implements IReflect.GetProperty
PropertyInfo IReflect.GetProperty(
string name,
BindingFlags bindingAttr
)
private:
virtual PropertyInfo^ GetProperty(
String^ name,
BindingFlags bindingAttr
) sealed = IReflect::GetProperty
private abstract GetProperty :
name:string *
bindingAttr:BindingFlags -> PropertyInfo
private override GetProperty :
name:string *
bindingAttr:BindingFlags -> PropertyInfo
JScript does not support explicit interface implementations.
Parameters
name
Type: System.StringThe name of the property to get.
bindingAttr
Type: System.Reflection.BindingFlagsA bitmask made up of one or more BindingFlags that specify how the search is conducted, or zero to return an empty array.
Return Value
Type: System.Reflection.PropertyInfo
An array of PropertyInfo objects representing all the properties for the type of the current instance that match the specified binding constraints. If the type of the current instance does not have properties, or if none of the properties match the binding constraints, returns an empty array of type PropertyInfo.
Implements
IReflect.GetProperty(String, BindingFlags)
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.