EventIdentifier – konstruktor (Type, String)
Inicializuje novou instanci EventIdentifier třídy s existující typ a název události.
Obor názvů: Microsoft.Windows.Design.Metadata
Sestavení: Microsoft.Windows.Design.Extensibility (v Microsoft.Windows.Design.Extensibility.dll)
Syntaxe
'Deklarace
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
)
Parametry
- declaringType
Typ: System.Type
Typ je deklarována jako událost.
- name
Typ: System.String
Jméno události.
Výjimky
Výjimka | Podmínka |
---|---|
ArgumentNullException | declaringTypeor name is nullodkaz Null (Nothing v jazyce Visual Basic). |
Zabezpečení rozhraní .NET Framework
- Plná důvěra přímému volajícímu. Částečně zabezpečený kód nemůže tento člen použít. Další informace naleznete v tématu Používání knihoven z částečně důvěryhodného kódu.