CompositionDependency.Missing(CompositionContract, Object) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
构造缺少的依赖项的占位符。
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
一个标记,用于标识依赖部件上的单个依赖关系。
返回
用作占位符的依赖项。
注解
缺少依赖项是错误。 缺少的依赖项不同于可选的依赖项。