MulticastDelegateとは? わかりやすく解説

MulticastDelegate クラス

マルチキャスト デリゲート、つまり呼び出しリスト複数要素組み込むことができるデリゲート表します

名前空間: System
アセンブリ: mscorlib (mscorlib.dll 内)
構文構文

<SerializableAttribute> _
<ComVisibleAttribute(True)> _
Public MustInherit Class
 MulticastDelegate
    Inherits Delegate
Dim instance As MulticastDelegate
[SerializableAttribute] 
[ComVisibleAttribute(true)] 
public abstract class MulticastDelegate : Delegate
[SerializableAttribute] 
[ComVisibleAttribute(true)] 
public ref class MulticastDelegate abstract
 : public Delegate
/** @attribute SerializableAttribute() */ 
/** @attribute ComVisibleAttribute(true) */ 
public abstract class MulticastDelegate extends
 Delegate
SerializableAttribute 
ComVisibleAttribute(true) 
public abstract class MulticastDelegate extends
 Delegate
解説解説
使用例使用例

MulticastDelegate から派生したクラス使用する例を次に示します

Imports System
Imports Microsoft.VisualBasic

' This class contains strings. It has a member method that
' accepts a multicast delegate as a parameter and calls it

Class HoldsStrings

    ' The following line causes the compiler to generate
    ' a new delegate class named CheckAndPrintDelegate that
    ' inherits from System.MulticastDelegate.
    Delegate Sub CheckAndPrintDelegate(ByVal
 str As String)

    ' An ArrayList that holds strings
    Private myStringArray As New
 System.Collections.ArrayList()

    Public Sub addstring(ByVal
 str As String)
        myStringArray.Add(str)
    End Sub 'addstring

    ' Iterate through the strings and invoke the method(s) that the
 delegate points to
    Public Sub PrintAllQualified(ByVal
 myDelegate As CheckAndPrintDelegate)
        Dim str As String
        For Each str In
 myStringArray
            myDelegate(str)
        Next str
    End Sub 'PrintAllQualified

End Class     'end of class HoldsStrings

' This class contains a few sample methods
Class StringFuncs
    ' This method prints a string that it is passed if the string starts
 with a vowel
    Public Shared Sub ConStart(ByVal
 str As String)
        If Not (str.Chars(0) = "a"c
 Or str.Chars(0) = "e"c Or
 str.Chars(0) = "i"c Or str.Chars(0) = "o"c Or str.Chars(0) = "u"c)
 Then
            Console.WriteLine(str)
        End If
    End Sub 'ConStart

    ' This method prints a string that it is passed if the string starts
 with a consonant
    Public Shared Sub VowelStart(ByVal
 str As String)
        If (str.Chars(0) = "a"c
 Or str.Chars(0) = "e"c Or
 str.Chars(0) = "i"c Or str.Chars(0) = "o"c Or str.Chars(0) =
 "u"c) Then
            Console.WriteLine(str)
        End If
    End Sub 'VowelStart
End Class 'StringFuncs

' This class demonstrates using Delegates, including using the Remove
 and
' Combine methods to create and modify delegate combinations.
Class Test

    Public Shared Sub Main()
        ' Declare the HoldsStrings class and add some strings
        Dim myHoldsStrings As New
 HoldsStrings()
        myHoldsStrings.addstring("this")
        myHoldsStrings.addstring("is")
        myHoldsStrings.addstring("a")
        myHoldsStrings.addstring("multicast")
        myHoldsStrings.addstring("delegate")
        myHoldsStrings.addstring("example")

        ' Create two delegates individually using different methods
        Dim ConStartDel = New HoldsStrings.CheckAndPrintDelegate(AddressOf
 StringFuncs.ConStart)

        Dim VowStartDel As New
 HoldsStrings.CheckAndPrintDelegate(AddressOf StringFuncs.VowelStart)

        ' Demonstrate that MulticastDelegates may store only one delegate
        Dim DelegateList() As [Delegate]

        ' Returns an array of all delegates stored in the linked list
 of the
        ' MulticastDelegate. In these cases the lists will hold only
 one (Multicast) delegate
        DelegateList = ConStartDel.GetInvocationList()
        Console.WriteLine("ConStartDel contains "
 + DelegateList.Length.ToString() + " delegate(s).")

        DelegateList = VowStartDel.GetInvocationList()
        Console.WriteLine(("ConStartVow contains "
 + DelegateList.Length.ToString() + " delegate(s)."))

        ' Determine whether the delegates are System.Multicast delegates
        If TypeOf ConStartDel Is
 System.MulticastDelegate And TypeOf VowStartDel
 Is System.MulticastDelegate Then
            Console.WriteLine("ConStartDel and ConStartVow are
 System.MulticastDelegates")
        End If

        ' Run the two single delegates one after the other
        Console.WriteLine("Running ConStartDel delegate:")
        myHoldsStrings.PrintAllQualified(ConStartDel)
        Console.WriteLine("Running VowStartDel delegate:")
        myHoldsStrings.PrintAllQualified(VowStartDel)

        ' Create a new, empty MulticastDelegate
        Dim MultiDel As HoldsStrings.CheckAndPrintDelegate

        ' Delegate.Combine receives an unspecified number of MulticastDelegates
 as parameters
        MultiDel = CType([Delegate].Combine(ConStartDel, VowStartDel), HoldsStrings.CheckAndPrintDelegate)

        ' How many delegates is this delegate holding?
        DelegateList = MultiDel.GetInvocationList()
        Console.WriteLine((ControlChars.Cr + "MulitDel contains
 " + DelegateList.Length.ToString() + " delegates."))

        ' What happens when this mulitcast delegate is passed to PrintAllQualified
        Console.WriteLine("Running the multiple delegate that
 combined the first two")
        myHoldsStrings.PrintAllQualified(MultiDel)

        ' The Remove and Combine methods modify the multiple delegate
        MultiDel = CType([Delegate].Remove(MultiDel, VowStartDel), HoldsStrings.CheckAndPrintDelegate)
        MultiDel = CType([Delegate].Combine(MultiDel, ConStartDel), HoldsStrings.CheckAndPrintDelegate)

        ' Finally, pass the combined delegates to PrintAllQualified
 again
        Console.WriteLine(ControlChars.Cr + "Running the multiple
 delegate that contains two copies of ConStartDel:")
        myHoldsStrings.PrintAllQualified(MultiDel)

        Return
    End Sub 'end of main
End Class 'end of Test

using System;

    // This class contains strings. It has a member method that
    // accepts a multicast delegate as a parameter and calls it.

    class HoldsStrings
    {
        // The following line causes the compiler to generate
        // a new delegate class named CheckAndPrintDelegate that
        // inherits from System.MulticastDelegate.
        public delegate void CheckAndPrintDelegate(string
 str);

        // An ArrayList that holds strings
        private System.Collections.ArrayList myStringArray = new
 System.Collections.ArrayList();

        // A method that adds more strings to the Collection
        public void addstring( string
 str) {
            myStringArray.Add(str);
        }

        // Iterate through the strings and invoke the method(s) that
 the delegate points to
        public void PrintAllQualified(CheckAndPrintDelegate
 myDelegate) {
            foreach (string str in
 myStringArray) {
                myDelegate(str);
            }
        }
    }   //end of class HoldsStrings

    // This class contains a few sample methods
    class StringFuncs
    {
        // This method prints a string that it is passed if the string
 starts with a vowel
        public static void
 ConStart(string str) {
            if (!(str[0]=='a'||str[0]=='e'||str[0]=='i'||str[0]=='o'||str[0]=='u'))
                Console.WriteLine(str);
        }

        // This method prints a string that it is passed if the string
 starts with a consonant
        public static void
 VowelStart(string str) {
            if ((str[0]=='a'||str[0]=='e'||str[0]=='i'||str[0]=='o'||str[0]=='u'))
                Console.WriteLine(str);
        }
    }

    // This class demonstrates using Delegates, including using the
 Remove and
    // Combine methods to create and modify delegate combinations.
    class Test
    {
        static public void
 Main()
        {
            // Declare the HoldsStrings class and add some strings
            HoldsStrings myHoldsStrings = new HoldsStrings();
            myHoldsStrings.addstring("This");
            myHoldsStrings.addstring("is");
            myHoldsStrings.addstring("a");
            myHoldsStrings.addstring("multicast");
            myHoldsStrings.addstring("delegate");
            myHoldsStrings.addstring("example");

            // Create two delegates individually using different methods
            HoldsStrings.CheckAndPrintDelegate ConStartDel =
                new HoldsStrings.CheckAndPrintDelegate(StringFuncs.ConStart);
            HoldsStrings.CheckAndPrintDelegate VowStartDel =
                new HoldsStrings.CheckAndPrintDelegate(StringFuncs.VowelStart);

            // Demonstrate that MulticastDelegates may store only one
 delegate
            Delegate [] DelegateList;

            // Returns an array of all delegates stored in the linked
 list of the
            // MulticastDelegate. In these cases the lists will hold
 only one (Multicast) delegate
            DelegateList = ConStartDel.GetInvocationList();
            Console.WriteLine("ConStartDel contains " + DelegateList.Length
 + " delegate(s).");
            DelegateList = VowStartDel.GetInvocationList();
            Console.WriteLine("ConStartVow contains " + DelegateList.Length
 + " delegate(s).");

            // Determine whether the delegates are System.Multicast
 delegates
            // if (ConStartDel is System.MulticastDelegate &&
 VowStartDel is System.MulticastDelegate) {
                Console.WriteLine("ConStartDel and ConStartVow are System.MulticastDelegates");
            // }

            // Run the two single delegates one after the other
            Console.WriteLine("Running ConStartDel delegate:");
            myHoldsStrings.PrintAllQualified(ConStartDel);
            Console.WriteLine("Running VowStartDel delegate:");
            myHoldsStrings.PrintAllQualified(VowStartDel);

            // Create a new, empty MulticastDelegate
            HoldsStrings.CheckAndPrintDelegate MultiDel;

            // Delegate.Combine receives an unspecified number of MulticastDelegates
 as parameters
            MultiDel = (HoldsStrings.CheckAndPrintDelegate) Delegate.Combine(ConStartDel,
 VowStartDel);

            // How many delegates is this delegate holding?
            DelegateList = MultiDel.GetInvocationList();
            Console.WriteLine("\nMulitDel contains " + DelegateList.Length
 + " delegates.");

            // What happens when this mulitcast delegate is passed to
 PrintAllQualified
            Console.WriteLine("Running the multiple delegate that combined the
 first two");
            myHoldsStrings.PrintAllQualified(MultiDel);

            // The Remove and Combine methods modify the multiple delegate
            MultiDel = (HoldsStrings.CheckAndPrintDelegate) Delegate.Remove(MultiDel,
 VowStartDel);
            MultiDel = (HoldsStrings.CheckAndPrintDelegate) Delegate.Combine(MultiDel,
 ConStartDel);

            // Finally, pass the combined delegates to PrintAllQualified
 again
            Console.WriteLine("\nRunning the multiple delegate that contains
 two copies of ConStartDel:");
            myHoldsStrings.PrintAllQualified(MultiDel);

            return;
        }   //end of main
    }   //end of Test
using namespace System;

// This class contains strings. It has a member method that
// accepts a multicast delegate as a parameter and calls it.
ref class HoldsStrings
{
public:
   // The following line causes the compiler to generate
   // a new delegate class named CheckAndPrintDelegate that
   // inherits from System.MulticastDelegate.
   delegate void CheckAndPrintDelegate( String^ str );

private:

   // An ArrayList that holds strings
   System::Collections::ArrayList^ myStringArray;

public:
   HoldsStrings()
   {
      myStringArray = gcnew System::Collections::ArrayList;
   }

   // A method that adds more strings to the Collection
   void addstring( String^ str )
   {
      myStringArray->Add( str );
   }


   // Iterate through the strings and invoke the method(s) that the
 delegate points to
   void PrintAllQualified( CheckAndPrintDelegate^ myDelegate )
   {
      System::Collections::IEnumerator^ myEnum = myStringArray->GetEnumerator();
      while ( myEnum->MoveNext() )
      {
         String^ str = safe_cast<String^>(myEnum->Current);
         myDelegate( str );
      }
   }

};

//end of class HoldsStrings
// This class contains a few sample methods
ref class StringFuncs
{
public:

   // This method prints a String* that it is passed if the String*
 starts with a vowel
   static void ConStart( String^ str )
   {
      if (  !(str[ 0 ] == 'a' || str[ 0 ] == 'e' || str[ 0 ] ==
 'i' || str[ 0 ] == 'o' || str[ 0 ] == 'u') )
            Console::WriteLine( str );
   }

   // This method prints a String* that it is passed if the String*
 starts with a consonant
   static void VowelStart( String^ str )
   {
      if ( (str[ 0 ] == 'a' || str[ 0 ] == 'e' || str[ 0 ] ==
 'i' || str[ 0 ] == 'o' || str[ 0 ] == 'u') )
            Console::WriteLine( str );
   }
};

// This function demonstrates using Delegates, including using the Remove
 and
// Combine methods to create and modify delegate combinations.
int main()
{
   // Declare the HoldsStrings class and add some strings
   HoldsStrings^ myHoldsStrings = gcnew HoldsStrings;
   myHoldsStrings->addstring( "This" );
   myHoldsStrings->addstring( "is" );
   myHoldsStrings->addstring( "a" );
   myHoldsStrings->addstring( "multicast" );
   myHoldsStrings->addstring( "delegate" );
   myHoldsStrings->addstring( "example" );

   // Create two delegates individually using different methods
   HoldsStrings::CheckAndPrintDelegate^ ConStartDel = gcnew HoldsStrings::CheckAndPrintDelegate(
 StringFuncs::ConStart );
   HoldsStrings::CheckAndPrintDelegate^ VowStartDel = gcnew HoldsStrings::CheckAndPrintDelegate(
 StringFuncs::VowelStart );

   // Demonstrate that MulticastDelegates may store only one delegate
   array<Delegate^>^DelegateList;

   // Returns an array of all delegates stored in the linked list of
 the
   // MulticastDelegate. In these cases the lists will hold only one
 (Multicast) delegate
   DelegateList = ConStartDel->GetInvocationList();
   Console::WriteLine( "ConStartDel contains {0} delegate(s).", DelegateList->Length
 );
   DelegateList = VowStartDel->GetInvocationList();
   Console::WriteLine( "ConStartVow contains {0} delegate(s).", DelegateList->Length
 );

   // Determine whether the delegates are System::Multicast delegates
   if ( dynamic_cast<System::MulticastDelegate^>(ConStartDel)
 && dynamic_cast<System::MulticastDelegate^>(VowStartDel) )
   {
      Console::WriteLine( "ConStartDel and ConStartVow are System::MulticastDelegates"
 );
   }

   // Run the two single delegates one after the other
   Console::WriteLine( "Running ConStartDel delegate:" );
   myHoldsStrings->PrintAllQualified( ConStartDel );
   Console::WriteLine( "Running VowStartDel delegate:" );
   myHoldsStrings->PrintAllQualified( VowStartDel );

   // Create a new, empty MulticastDelegate
   HoldsStrings::CheckAndPrintDelegate^ MultiDel;

   // Delegate::Combine receives an unspecified number of MulticastDelegates
 as parameters
   MultiDel = dynamic_cast<HoldsStrings::CheckAndPrintDelegate^>(Delegate::Combine(
 ConStartDel, VowStartDel ));

   // How many delegates is this delegate holding?
   DelegateList = MultiDel->GetInvocationList();
   Console::WriteLine( "\nMulitDel contains {0} delegates.", DelegateList->Length
 );

   // What happens when this mulitcast delegate is passed to PrintAllQualified
   Console::WriteLine( "Running the multiple delegate that combined the first
 two" );
   myHoldsStrings->PrintAllQualified( MultiDel );

   // The Remove and Combine methods modify the multiple delegate
   MultiDel = dynamic_cast<HoldsStrings::CheckAndPrintDelegate^>(Delegate::Remove(
 MultiDel, VowStartDel ));
   MultiDel = dynamic_cast<HoldsStrings::CheckAndPrintDelegate^>(Delegate::Combine(
 MultiDel, ConStartDel ));

   // Finally, pass the combined delegates to PrintAllQualified again
   Console::WriteLine( "\nRunning the multiple delegate that contains two copies
 of ConStartDel:" );
   myHoldsStrings->PrintAllQualified( MultiDel );
} //end of main
import System.*;

// This class contains strings. It has a member method that
// accepts a multicast delegate as a parameter and calls it.

class HoldsStrings
{
    /** @delegate
     */

    // This delegate is declared as a void, so the compiler automatically
    // generates a new class, named CheckAndPrintDelegate, that inherits
 from
    // System.MulticastDelegate.
    public delegate void CheckAndPrintDelegate(String
 str);

    // An ArrayList that holds strings
    private System.Collections.ArrayList myStringArray =
        new System.Collections.ArrayList();

    // A method that adds more strings to the Collection
    public void addstring(String str)
    {
        myStringArray.Add(str);
    } //addstring

    // Iterate through the strings and invoke the method(s) that the
 delegate
    // points to
    public void PrintAllQualified(CheckAndPrintDelegate
 myDelegate)
    {
        for (int iCtr1 = 0; iCtr1 < myStringArray.get_Count();
 iCtr1++) {
            String str = System.Convert.ToString(myStringArray.get_Item(iCtr1));
            myDelegate.Invoke(str);
        }
    } //PrintAllQualified
} //HoldsStrings
//end of class HoldsStrings

// This class contains a few sample methods
class StringFuncs
{
    // This method prints a string that it is passed if the string starts
 
    // with a vowel
    public static void ConStart(String
 str)
    {
        if (!(str.get_Chars(0) == 'a' || str.get_Chars(0) == 'e'
            || str.get_Chars(0) == 'i' || str.get_Chars(0) == 'o'
            || str.get_Chars(0) == 'u')) {
            Console.WriteLine(str);
        }
    } //ConStart

    // This method prints a string that it is passed if the string starts
 with
    // a consonant
    public static void VowelStart(String
 str)
    {
        if (str.get_Chars(0) == 'a' || str.get_Chars(0) == 'e'
            || str.get_Chars(0) == 'i' || str.get_Chars(0) == 'o'
            || str.get_Chars(0) == 'u') {
            Console.WriteLine(str);
        }
    } //VowelStart
} //StringFuncs

// This class demonstrates using Delegates, including using the Remove
 and
// Combine methods to create and modify delegate combinations.
class Test
{
    public static void main(String[]
 args)
    {
        // Declare the HoldsStrings class and add some strings
        HoldsStrings myHoldsStrings = new HoldsStrings();
        myHoldsStrings.addstring("This");
        myHoldsStrings.addstring("is");
        myHoldsStrings.addstring("a");
        myHoldsStrings.addstring("multicast");
        myHoldsStrings.addstring("delegate");
        myHoldsStrings.addstring("example");
        // Create two delegates individually using different methods
        HoldsStrings.CheckAndPrintDelegate ConStartDel = 
            new HoldsStrings.CheckAndPrintDelegate(StringFuncs.ConStart);
        HoldsStrings.CheckAndPrintDelegate VowStartDel = 
            new HoldsStrings.CheckAndPrintDelegate(StringFuncs.VowelStart);
        // Demonstrate that MulticastDelegates may store only one delegate
        Delegate DelegateList[];
        // Returns an array of all delegates stored in the linked list of
 the
        // MulticastDelegate. In these cases the lists will hold only
 one 
        // (Multicast) delegate
        DelegateList = ConStartDel.GetInvocationList();
        Console.WriteLine("ConStartDel contains " + DelegateList.get_Length()
 
            + " delegate(s).");
        DelegateList = VowStartDel.GetInvocationList();
        Console.WriteLine("ConStartVow contains " + DelegateList.get_Length()
 
            + " delegate(s).");
        // Determine whether the delegates are System.Multicast delegates
        // if (ConStartDel is System.MulticastDelegate && VowStartDel
 is 
        // System.MulticastDelegate) {
        Console.WriteLine("ConStartDel and ConStartVow are " 
            + "System.MulticastDelegates");
        // }
        // Run the two single delegates one after the other
        Console.WriteLine("Running ConStartDel delegate:");
        myHoldsStrings.PrintAllQualified(ConStartDel);
        Console.WriteLine("Running VowStartDel delegate:");
        myHoldsStrings.PrintAllQualified(VowStartDel);
        // Create a new, empty MulticastDelegate
        HoldsStrings.CheckAndPrintDelegate multiDel;
        // Delegate.Combine receives an unspecified number of MulticastDelegates
        // as parameters
        multiDel = (HoldsStrings.CheckAndPrintDelegate)(Delegate.Combine(
            ConStartDel, VowStartDel));
        // How many delegates is this delegate holding?
        DelegateList = multiDel.GetInvocationList();
        Console.WriteLine("\nMulitDel contains " + DelegateList.get_Length()
 
            + " delegates.");
        // What happens when this mulitcast delegate is passed to 
        // PrintAllQualified
        Console.WriteLine("Running the multiple delegate that combined the "
            + "first two");
        myHoldsStrings.PrintAllQualified(multiDel);
        // The Remove and Combine methods modify the multiple delegate
        multiDel = (HoldsStrings.CheckAndPrintDelegate)(Delegate.Remove(
            multiDel, VowStartDel));
        multiDel = (HoldsStrings.CheckAndPrintDelegate)(Delegate.Combine(
            multiDel, ConStartDel));
        // Finally, pass the combined delegates to PrintAllQualified
 again
        Console.WriteLine("\nRunning the multiple delegate that contains two
 " 
            + "copies of ConStartDel:");
        myHoldsStrings.PrintAllQualified(multiDel);
        return;
    } //main 
} //Test 
継承階層継承階層
System.Object
   System.Delegate
    System.MulticastDelegate
       派生クラス
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

MulticastDelegate コンストラクタ ()


MulticastDelegate コンストラクタ (Type, String)

MulticastDelegate クラス新しインスタンス初期化します。

名前空間: System
アセンブリ: mscorlib (mscorlib.dll 内)
構文構文

例外例外
例外種類条件

MemberAccessException

抽象クラスインスタンス作成できません。または、このメンバ遅延バインディング機構使用して呼び出されました。

解説解説
.NET Framework のセキュリティ.NET Frameworkセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
MulticastDelegate クラス
MulticastDelegate メンバ
System 名前空間

MulticastDelegate コンストラクタ

MulticastDelegate クラス新しインスタンス初期化します。
オーバーロードの一覧オーバーロードの一覧

名前 説明
MulticastDelegate ()  

.NET Compact Framework によってサポートされています。

MulticastDelegate (Object, String) MulticastDelegate クラス新しインスタンス初期化します。
MulticastDelegate (Type, String) MulticastDelegate クラス新しインスタンス初期化します。
参照参照

関連項目

MulticastDelegate クラス
MulticastDelegate メンバ
System 名前空間

MulticastDelegate コンストラクタ (Object, String)

MulticastDelegate クラス新しインスタンス初期化します。

名前空間: System
アセンブリ: mscorlib (mscorlib.dll 内)
構文構文

例外例外
例外種類条件

MemberAccessException

抽象クラスインスタンス作成できません。または、このメンバ遅延バインディング機構使用して呼び出されました。

解説解説
.NET Framework のセキュリティ.NET Frameworkセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
MulticastDelegate クラス
MulticastDelegate メンバ
System 名前空間

MulticastDelegate プロパティ


MulticastDelegate メソッド


パブリック メソッドパブリック メソッド

( プロテクト メソッド参照)
  名前 説明
パブリック メソッド Clone  デリゲート簡易コピー作成します。 ( Delegate から継承されます。)
パブリック メソッド Combine  オーバーロードされます指定したマルチキャスト (組み合わせ可能) デリゲート呼び出しリスト連結します。 ( Delegate から継承されます。)
パブリック メソッド CreateDelegate  オーバーロードされます指定した型のデリゲート作成します。 ( Delegate から継承されます。)
パブリック メソッド DynamicInvoke  現在のデリゲートが表すメソッド動的に呼び出します (遅延バインディング)。 ( Delegate から継承されます。)
パブリック メソッド Equals オーバーロードされますオーバーライドされます。 このマルチキャスト デリゲート指定されオブジェクト等しかどうか確認します
パブリック メソッド GetHashCode オーバーライドされます。 このインスタンスハッシュ コード返します
パブリック メソッド GetInvocationList オーバーライドされます。 このマルチキャスト デリゲート呼び出しリスト呼び出し順に返します
パブリック メソッド GetObjectData オーバーライドされます。 SerializationInfo オブジェクトに、このインスタンスシリアル化するために必要なデータをすべて格納します
パブリック メソッド GetType  現在のインスタンスType取得します。 ( Object から継承されます。)
パブリック メソッド op_Equality オーバーロードされます2 つオブジェクト等しかどうか判断します
パブリック メソッド op_Inequality オーバーロードされます2 つオブジェクト等しくないかどうか判断します
パブリック メソッド ReferenceEquals  指定した複数Object インスタンス同一かどうか判断します。 ( Object から継承されます。)
パブリック メソッド Remove  一方デリゲート呼び出しリストから、最後に出現した他方デリゲート呼び出しリスト削除します。 ( Delegate から継承されます。)
パブリック メソッド RemoveAll  一方デリゲート呼び出しリストから、そこに出現する他方デリゲート呼び出しリストをすべて削除します。 ( Delegate から継承されます。)
パブリック メソッド ToString  現在の Object を表す String返します。 ( Object から継承されます。)
プロテクト メソッドプロテクト メソッド
参照参照

関連項目

MulticastDelegate クラス
System 名前空間

MulticastDelegate メンバ

マルチキャスト デリゲート、つまり呼び出しリスト複数要素組み込むことができるデリゲート表します

MulticastDelegate データ型公開されるメンバを以下の表に示します


プロテクト コンストラクタプロテクト コンストラクタ
  名前 説明
プロテクト メソッド MulticastDelegate オーバーロードされます。 MulticastDelegate クラス新しインスタンス初期化します。
パブリック プロパティパブリック プロパティ
パブリック メソッドパブリック メソッド
( プロテクト メソッド参照)
  名前 説明
パブリック メソッド Clone  デリゲート簡易コピー作成します。 (Delegate から継承されます。)
パブリック メソッド Combine  オーバーロードされます指定したマルチキャスト (組み合わせ可能) デリゲート呼び出しリスト連結します。 (Delegate から継承されます。)
パブリック メソッド CreateDelegate  オーバーロードされます指定した型のデリゲート作成します。 (Delegate から継承されます。)
パブリック メソッド DynamicInvoke  現在のデリゲートが表すメソッド動的に呼び出します (遅延バインディング)。 (Delegate から継承されます。)
パブリック メソッド Equals オーバーロードされますオーバーライドされます。 このマルチキャスト デリゲート指定されオブジェクト等しかどうか確認します
パブリック メソッド GetHashCode オーバーライドされます。 このインスタンスハッシュ コード返します
パブリック メソッド GetInvocationList オーバーライドされます。 このマルチキャスト デリゲート呼び出しリスト呼び出し順に返します
パブリック メソッド GetObjectData オーバーライドされます。 SerializationInfo オブジェクトに、このインスタンスシリアル化するために必要なデータをすべて格納します
パブリック メソッド GetType  現在のインスタンスType取得します。 (Object から継承されます。)
パブリック メソッド op_Equality オーバーロードされます2 つオブジェクト等しかどうか判断します
パブリック メソッド op_Inequality オーバーロードされます2 つオブジェクト等しくないかどうか判断します
パブリック メソッド ReferenceEquals  指定した複数Object インスタンス同一かどうか判断します。 (Object から継承されます。)
パブリック メソッド Remove  一方デリゲート呼び出しリストから、最後に出現した他方デリゲート呼び出しリスト削除します。 (Delegate から継承されます。)
パブリック メソッド RemoveAll  一方デリゲート呼び出しリストから、そこに出現する他方デリゲート呼び出しリストをすべて削除します。 (Delegate から継承されます。)
パブリック メソッド ToString  現在の Object を表す String返します。 (Object から継承されます。)
プロテクト メソッドプロテクト メソッド
参照参照

関連項目

MulticastDelegate クラス
System 名前空間


このページでは「.NET Framework クラス ライブラリ リファレンス」からMulticastDelegateを検索した結果を表示しています。
Weblioに収録されているすべての辞書からMulticastDelegateを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からMulticastDelegate を検索

英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「MulticastDelegate」の関連用語

MulticastDelegateのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



MulticastDelegateのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS