TimeoutHelper.ThrowIfNonPositiveArgument 方法

定义

重载

ThrowIfNonPositiveArgument(TimeSpan)
ThrowIfNonPositiveArgument(TimeSpan, String)

ThrowIfNonPositiveArgument(TimeSpan)

public:
 static void ThrowIfNonPositiveArgument(TimeSpan timeout);
public static void ThrowIfNonPositiveArgument (TimeSpan timeout);
static member ThrowIfNonPositiveArgument : TimeSpan -> unit
Public Shared Sub ThrowIfNonPositiveArgument (timeout As TimeSpan)

参数

timeout
TimeSpan

适用于

ThrowIfNonPositiveArgument(TimeSpan, String)

public:
 static void ThrowIfNonPositiveArgument(TimeSpan timeout, System::String ^ argumentName);
public static void ThrowIfNonPositiveArgument (TimeSpan timeout, string argumentName);
static member ThrowIfNonPositiveArgument : TimeSpan * string -> unit
Public Shared Sub ThrowIfNonPositiveArgument (timeout As TimeSpan, argumentName As String)

参数

timeout
TimeSpan
argumentName
String

适用于