次の方法で共有


Assumes.Present<T>(T) Method

Definition

Verifies that a value is not null, and throws Microsoft.Assumes.InternalErrorException about a missing service otherwise.

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)

Type Parameters

T

The interface of the imported part.

Parameters

component
T
Attributes

Applies to