Retrieves the properties for the specified instance of a component using the attribute array as a filter.
Namespace: Microsoft.VisualStudio.Data
Assembly: Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)
Syntax
'宣言
Private Function GetProperties ( _
attributes As Attribute() _
) As PropertyDescriptorCollection Implements ICustomTypeDescriptor.GetProperties
'使用
Dim instance As DataConnectionProperties
Dim attributes As Attribute()
Dim returnValue As PropertyDescriptorCollection
returnValue = CType(instance, ICustomTypeDescriptor).GetProperties(attributes)
PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties(
Attribute[] attributes
)
private:
virtual PropertyDescriptorCollection^ GetProperties(
array<Attribute^>^ attributes
) sealed = ICustomTypeDescriptor::GetProperties
JScript does not support explicit interface implementations.
Parameters
attributes
Type: []An array of type Attribute that is used as a filter.
Return Value
Type: System.ComponentModel.PropertyDescriptorCollection
Returns an array of type Attribute that represents the filtered properties for this component instance.
Implements
ICustomTypeDescriptor.GetProperties([])
Remarks
This method provides an implementation of the GetProperties method. For more information see the GetProperties(System.Attribute[]) method in the .NET Framework class library.
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.
See Also
Reference
DataConnectionProperties Class