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
'宣言
Private Function GetProperty ( _
name As String, _
bindingAttr As BindingFlags _
) As PropertyInfo Implements IReflect.GetProperty
'使用
Dim instance As DataViewBrowseObject
Dim name As String
Dim bindingAttr As BindingFlags
Dim returnValue As PropertyInfo
returnValue = CType(instance, IReflect).GetProperty(name, _
bindingAttr)
PropertyInfo IReflect.GetProperty(
string name,
BindingFlags bindingAttr
)
private:
virtual PropertyInfo^ GetProperty(
String^ name,
BindingFlags bindingAttr
) sealed = IReflect::GetProperty
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)
Permissions
- 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.