Share via


OptionalDependencyAttribute Class

Base class for dependency attributes that can be made optional.

Namespace: Microsoft.Practices.CompositeUI
Assembly: Microsoft.Practices.CompositeUI (in microsoft.practices.compositeui.dll)

Syntax

'Declaration
Public MustInherit Class OptionalDependencyAttribute
    Inherits ParameterAttribute
'Usage
Dim instance As OptionalDependencyAttribute
public abstract class OptionalDependencyAttribute : ParameterAttribute
public ref class OptionalDependencyAttribute abstract : public ParameterAttribute
public abstract class OptionalDependencyAttribute extends ParameterAttribute
public abstract class OptionalDependencyAttribute extends ParameterAttribute

Inheritance Hierarchy

System.Object
   System.Attribute
     Microsoft.Practices.ObjectBuilder.ParameterAttribute
      Microsoft.Practices.CompositeUI.OptionalDependencyAttribute
         Microsoft.Practices.CompositeUI.ComponentDependencyAttribute
         Microsoft.Practices.CompositeUI.ServiceDependencyAttribute

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

OptionalDependencyAttribute Members
Microsoft.Practices.CompositeUI Namespace