CompositionDependency.Missing(CompositionContract, Object) 方法

定义

构造缺少的依赖项的占位符。

public:
 static System::Composition::Hosting::Core::CompositionDependency ^ Missing(System::Composition::Hosting::Core::CompositionContract ^ contract, System::Object ^ site);
public static System.Composition.Hosting.Core.CompositionDependency Missing (System.Composition.Hosting.Core.CompositionContract contract, object site);
static member Missing : System.Composition.Hosting.Core.CompositionContract * obj -> System.Composition.Hosting.Core.CompositionDependency
Public Shared Function Missing (contract As CompositionContract, site As Object) As CompositionDependency

参数

contract
CompositionContract

“>该依赖项所需的协定。

site
Object

一个标记,用于标识依赖部件上的单个依赖关系。

返回

用作占位符的依赖项。

注解

缺少依赖项是错误。 缺少的依赖项不同于可选的依赖项。

适用于