Share via


EventIdentifier Constructor (Type, String)

Initializes a new instance of the EventIdentifier class with the specified existing type and event name.

Namespace:  Microsoft.Windows.Design.Metadata
Assembly:  Microsoft.Windows.Design.Extensibility (in Microsoft.Windows.Design.Extensibility.dll)

Syntax

'Declaration
Public Sub New ( _
    declaringType As Type, _
    name As String _
)
public EventIdentifier(
    Type declaringType,
    string name
)
public:
EventIdentifier(
    Type^ declaringType, 
    String^ name
)
new : 
        declaringType:Type * 
        name:string -> EventIdentifier
public function EventIdentifier(
    declaringType : Type, 
    name : String
)

Parameters

  • declaringType
    Type: System.Type
    The type on which the event is declared.

Exceptions

Exception Condition
ArgumentNullException

declaringType or name is nulla null reference (Nothing in Visual Basic).

.NET Framework Security

See Also

Reference

EventIdentifier Structure

EventIdentifier Overload

Microsoft.Windows.Design.Metadata Namespace