Partager via


TypeBindingAttribute Class

Binds a model type to a target type. Target types are those used in an implementation or adapter.

Namespace: Microsoft.Modeling
Assembly: Microsoft.Xrt.Runtime (in Microsoft.Xrt.Runtime.dll)

Usage

'Usage

Syntax

'Declaration
[AttributeUsageAttribute(AttributeTargets.Class|AttributeTargets.Struct|AttributeTargets.Interface|AttributeTargets.Delegate, AllowMultiple=false, Inherited=false)] 
public sealed class TypeBindingAttribute : Attribute

Remarks

During testing, a one-to-one mapping is established between instances returned by the implementation and model type instances used during model exploration.

Note

Type binding to a static class is not allowed.

For more information about using attributes, see Extending Metadata Using Attributes.

Inheritance Hierarchy

System.Object
   System.Attribute
    Microsoft.Modeling.TypeBindingAttribute

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.

Platforms

Development Platforms

Microsoft Windows 7, Microsoft Windows Vista, Microsoft Windows XP SP2 or later, Microsoft Windows Server 2008, Microsoft Windows Server 2003

Change History

See Also

Reference

TypeBindingAttribute Members
Microsoft.Modeling Namespace

Other Resources

TypeBinding Attribute