EventIdentifier Constructor (TypeIdentifier, String)
Initializes a new instance of the EventIdentifier class with the specified existing type identifier and event name.
Namespace: Microsoft.Windows.Design.Metadata
Assembly: Microsoft.Windows.Design.Extensibility (in Microsoft.Windows.Design.Extensibility.dll)
Syntax
'Declaration
Public Sub New ( _
declaringTypeId As TypeIdentifier, _
name As String _
)
public EventIdentifier(
TypeIdentifier declaringTypeId,
string name
)
public:
EventIdentifier(
TypeIdentifier declaringTypeId,
String^ name
)
new :
declaringTypeId:TypeIdentifier *
name:string -> EventIdentifier
public function EventIdentifier(
declaringTypeId : TypeIdentifier,
name : String
)
Parameters
- declaringTypeId
Type: Microsoft.Windows.Design.Metadata.TypeIdentifier
The TypeIdentifier of the type on which the event is declared.
- name
Type: System.String
The name of the event.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | name is nulla null reference (Nothing in Visual Basic). |
ArgumentNullException | declaringTypeId was created by using an empty constructor. |
.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.