DependencyAccessor 类

定义

允许 ExportDescriptorProvider 对象定位其依赖项。Allows ExportDescriptorProvider objects to locate their dependencies.

public ref class DependencyAccessor abstract
public abstract class DependencyAccessor
type DependencyAccessor = class
Public MustInherit Class DependencyAccessor
继承
DependencyAccessor

构造函数

DependencyAccessor()

初始化 DependencyAccessor 类的新实例。Initializes a new instance of the DependencyAccessor class.

方法

Equals(Object)

确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetPromises(CompositionContract)

检索指定协定的所有承诺。Retrieves all promises for the specified contract.

GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ResolveDependencies(Object, CompositionContract, Boolean)

在协定的所有实现中解析依赖项。Resolves dependencies on all implementations of a contract.

ResolveRequiredDependency(Object, CompositionContract, Boolean)

在协定的某个实现中解析所需的依赖项。Resolves a required dependency on one implementation of a contract.

ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(继承自 Object)
TryResolveOptionalDependency(Object, CompositionContract, Boolean, CompositionDependency)

在协定的某个实现上解析某个可选的依赖项。Resolves an optional dependency on one implementation of a contract.

适用于