Language

TypeDescriptor.GetDefaultEvent メソッド

定義

コンポーネントまたは型の既定のイベントを返します。

オーバーロード

名前 説明
GetDefaultEvent(Object)

指定したコンポーネントの既定のイベントを返します。

GetDefaultEvent(Type)

指定した種類のコンポーネントの既定のイベントを返します。

GetDefaultEvent(Object, Boolean)

カスタム型記述子を持つコンポーネントの既定のイベントを返します。

GetDefaultEvent(Object)

ソース:
TypeDescriptor.cs
ソース:
TypeDescriptor.cs
ソース:
TypeDescriptor.cs
ソース:
TypeDescriptor.cs
ソース:
TypeDescriptor.cs

指定したコンポーネントの既定のイベントを返します。

public:
 static System::ComponentModel::EventDescriptor ^ GetDefaultEvent(System::Object ^ component);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The built-in EventDescriptor implementation uses Reflection which requires unreferenced code. The Type of component cannot be statically discovered.")]
public static System.ComponentModel.EventDescriptor? GetDefaultEvent(object component);
public static System.ComponentModel.EventDescriptor GetDefaultEvent(object component);
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The built-in EventDescriptor implementation uses Reflection which requires unreferenced code. The Type of component cannot be statically discovered.")>]
static member GetDefaultEvent : obj -> System.ComponentModel.EventDescriptor
static member GetDefaultEvent : obj -> System.ComponentModel.EventDescriptor
Public Shared Function GetDefaultEvent (component As Object) As EventDescriptor

パラメーター

component
Object

イベントを取得する対象のコンポーネント。

返品

既定のイベントを含む EventDescriptor 。イベントがない場合は null 。

属性

例外

component は nullです。

component は、プロセス間のリモート オブジェクトです。

注釈

このメソッドは、GetDefaultEvent(Object, Boolean) の 2 番目のパラメーターを持つオーバーロードされたfalse メソッドと同じです。

こちらもご覧ください

適用対象

GetDefaultEvent(Type)

ソース:
TypeDescriptor.cs
ソース:
TypeDescriptor.cs
ソース:
TypeDescriptor.cs
ソース:
TypeDescriptor.cs
ソース:
TypeDescriptor.cs

指定した種類のコンポーネントの既定のイベントを返します。

public:
 static System::ComponentModel::EventDescriptor ^ GetDefaultEvent(Type ^ componentType);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The built-in EventDescriptor implementation uses Reflection which requires unreferenced code.")]
public static System.ComponentModel.EventDescriptor? GetDefaultEvent(Type componentType);
public static System.ComponentModel.EventDescriptor GetDefaultEvent(Type componentType);
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The built-in EventDescriptor implementation uses Reflection which requires unreferenced code.")>]
static member GetDefaultEvent : Type -> System.ComponentModel.EventDescriptor
static member GetDefaultEvent : Type -> System.ComponentModel.EventDescriptor
Public Shared Function GetDefaultEvent (componentType As Type) As EventDescriptor

パラメーター

componentType
Type

ターゲット コンポーネントの Type 。

返品

既定のイベントを含む EventDescriptor 。イベントがない場合は null 。

属性

例外

componentType は nullです。

注釈

オブジェクトのインスタンスがない場合にのみ、このバージョンのこのメソッドを呼び出します。

こちらもご覧ください

適用対象

GetDefaultEvent(Object, Boolean)

ソース:
TypeDescriptor.cs
ソース:
TypeDescriptor.cs
ソース:
TypeDescriptor.cs
ソース:
TypeDescriptor.cs
ソース:
TypeDescriptor.cs

カスタム型記述子を持つコンポーネントの既定のイベントを返します。

public:
 static System::ComponentModel::EventDescriptor ^ GetDefaultEvent(System::Object ^ component, bool noCustomTypeDesc);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The built-in EventDescriptor implementation uses Reflection which requires unreferenced code. The Type of component cannot be statically discovered.")]
public static System.ComponentModel.EventDescriptor? GetDefaultEvent(object component, bool noCustomTypeDesc);
public static System.ComponentModel.EventDescriptor GetDefaultEvent(object component, bool noCustomTypeDesc);
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The built-in EventDescriptor implementation uses Reflection which requires unreferenced code. The Type of component cannot be statically discovered.")>]
static member GetDefaultEvent : obj * bool -> System.ComponentModel.EventDescriptor
static member GetDefaultEvent : obj * bool -> System.ComponentModel.EventDescriptor
Public Shared Function GetDefaultEvent (component As Object, noCustomTypeDesc As Boolean) As EventDescriptor

パラメーター

component
Object

イベントを取得する対象のコンポーネント。

noCustomTypeDesc
Boolean

true カスタム型の説明情報を考慮しない場合。それ以外の場合は false。

返品

既定のイベントを含む EventDescriptor 。イベントがない場合は null 。

属性

例外

component は nullです。

component は、プロセス間のリモート オブジェクトです。

こちらもご覧ください

適用対象