Report.IfNotPresent<T>(T) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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