LocalizableProperties.GetEvents Method (array<Attribute )
Gets the collection of events for a specified component using a specified array of attributes as a filter.
Namespace: Microsoft.VisualStudio.Shell
Assemblies: Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)
Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)
Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
Syntax
‘선언
Public Function GetEvents ( _
attributes As Attribute() _
) As EventDescriptorCollection
‘사용 방법
Dim instance As LocalizableProperties
Dim attributes As Attribute()
Dim returnValue As EventDescriptorCollection
returnValue = instance.GetEvents(attributes)
public EventDescriptorCollection GetEvents(
Attribute[] attributes
)
public:
virtual EventDescriptorCollection^ GetEvents(
array<Attribute^>^ attributes
) sealed
abstract GetEvents :
attributes:Attribute[] -> EventDescriptorCollection
override GetEvents :
attributes:Attribute[] -> EventDescriptorCollection
public final function GetEvents(
attributes : Attribute[]
) : EventDescriptorCollection
Parameters
- attributes
Type: array<System.Attribute[]
An array of type Attribute to use as a filter.
Return Value
Type: System.ComponentModel.EventDescriptorCollection
An EventDescriptorCollection with the events that match the specified attributes for this component.
Implements
ICustomTypeDescriptor.GetEvents(array<Attribute[])
Remarks
Delegates to GetEvents.
.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.