Action<T1, T2, T3, T4, T5, T6, T7> Class
Encapsulates a method that has seven parameters and does not return a value.
Assemblies: System.Runtime (in System.Runtime.dll)
mscorlib (in mscorlib.dll)
- in T1
The type of the first parameter of the method that this delegate encapsulates.
This type parameter is contravariant. That is, you can use either the type you specified or any type that is less derived. For more information about covariance and contravariance, see Covariance and Contravariance in Generics.
- in T2
The type of the second parameter of the method that this delegate encapsulates.
- in T3
The type of the third parameter of the method that this delegate encapsulates.
- in T4
The type of the fourth parameter of the method that this delegate encapsulates.
- in T5
The type of the fifth parameter of the method that this delegate encapsulates.
- in T6
The type of the sixth parameter of the method that this delegate encapsulates.
- in T7
The type of the seventh parameter of the method that this delegate encapsulates.
Thetype exposes the following members.
|DynamicInvoke||Dynamically invokes (late-bound) the method represented by the current delegate. (Inherited from Delegate.)|
|Equals||Determines whether this multicast delegate and the specified object are equal. (Inherited from MulticastDelegate.)|
|GetHashCode||Returns the hash code for this instance. (Inherited from MulticastDelegate.)|
|GetInvocationList||Returns the invocation list of this multicast delegate, in invocation order. (Inherited from MulticastDelegate.)|
|GetType||Gets the Type of the current instance. (Inherited from Object.)|
|ToString||Returns a string that represents the current object. (Inherited from Object.)|
You can use the delegate to pass a method as a parameter without explicitly declaring a custom delegate. The encapsulated method must correspond to the method signature that is defined by this delegate. This means that the encapsulated method must have seven parameters that are all passed to it by value, and it must not return a value. (In C#, the method must return void. In Visual Basic, it must be defined by the Sub…End Sub construct. It can also be a method that returns a value that is ignored.) Typically, such a method is used to perform an operation.
To reference a method that has seven parameters and returns a value, use the generic Func<T1, T2, T3, T4, T5, T6, T7, TResult> delegate instead.
You can also use the delegate with anonymous methods and lambda expressions.
.NET FrameworkSupported in: 4.5.3, 4
.NET Framework Client ProfileSupported in: 4
Portable Class LibrarySupported in: Portable Class Library
.NET for Windows Store appsSupported in: Windows 8
Supported in: Windows Phone 8.1
Supported in: Windows Phone Silverlight 8.1
Supported in: Windows Phone Silverlight 8
Windows Phone 8.1, Windows Phone 8, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.