Share via


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

適用於