Sdílet prostřednictvím


Report.IfNotPresent<T>(T) Method

Definition

Verifies that a value is not null, and reports an error about a missing MEF component otherwise.

public:
generic <typename T>
 static void IfNotPresent(T part);
[System.Diagnostics.Conditional("DEBUG")]
public static void IfNotPresent<T> (T part);
[<System.Diagnostics.Conditional("DEBUG")>]
static member IfNotPresent : 'T -> unit
Public Shared Sub IfNotPresent(Of T) (part As T)

Type Parameters

T

The interface of the imported part.

Parameters

part
T
Attributes

Applies to