Retrieves the specified public members that match the specified binding constraints for the type of the current instance.
Namespace: Microsoft.VisualStudio.Data.Framework
Assembly: Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)
Syntax
'宣言
Private Function GetMember ( _
name As String, _
bindingAttr As BindingFlags _
) As MemberInfo() Implements IReflect.GetMember
'使用
Dim instance As DataViewBrowseObject
Dim name As String
Dim bindingAttr As BindingFlags
Dim returnValue As MemberInfo()
returnValue = CType(instance, IReflect).GetMember(name, _
bindingAttr)
MemberInfo[] IReflect.GetMember(
string name,
BindingFlags bindingAttr
)
private:
virtual array<MemberInfo^>^ GetMember(
String^ name,
BindingFlags bindingAttr
) sealed = IReflect::GetMember
JScript does not support explicit interface implementations.
Parameters
name
Type: System.StringThe name of the members 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: []
An array of MemberInfo objects representing the public members with the specified name, if found; otherwise, an empty array.
Implements
IReflect.GetMember(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.