Assumes.Present<T>(T) 方法

定义

验证某个值是否不为 null,否则将引发 Microsoft.Assumes.InternalErrorException 有关缺少的服务的信息。

public:
generic <typename T>
 static void Present(T component);
[System.Diagnostics.DebuggerStepThrough]
public static void Present<T> (T component);
[<System.Diagnostics.DebuggerStepThrough>]
static member Present : 'T -> unit
Public Shared Sub Present(Of T) (component As T)

类型参数

T

导入的部件的接口。

参数

component
T
属性

适用于