镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

M_CommandLine_Infrastructure_ExceptionExtensions_RethrowWhenAbsentIn

Moh.Hassan edited this page Oct 10, 2019 · 1 revision

ExceptionExtensions.RethrowWhenAbsentIn Method

Namespace: CommandLine.Infrastructure
Assembly: CommandLine (in CommandLine.dll) Version: 0.0.0

Syntax

C#

public static void RethrowWhenAbsentIn(
	this Exception exception,
	IEnumerable<Type> validExceptions
)

VB

<ExtensionAttribute>
Public Shared Sub RethrowWhenAbsentIn ( 
	exception As Exception,
	validExceptions As IEnumerable(Of Type)
)

C++

public:
[ExtensionAttribute]
static void RethrowWhenAbsentIn(
	Exception^ exception, 
	IEnumerable<Type^>^ validExceptions
)

F#

[<ExtensionAttribute>]
static member RethrowWhenAbsentIn : 
        exception : Exception * 
        validExceptions : IEnumerable<Type> -> unit 

Parameters

 

exception
Type: System.Exception
validExceptions
Type: System.Collections.Generic.IEnumerable(Type)

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Exception. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also

Reference

ExceptionExtensions Class
CommandLine.Infrastructure Namespace

Clone this wiki locally