Share via


IndexAttribute Class

Inheritance Hierarchy

System.Object
  System.Attribute
    Microsoft.Phone.Data.Linq.Mapping.IndexAttribute

Namespace:  Microsoft.Phone.Data.Linq.Mapping
Assemblies:   System.Data.Linq (in System.Data.Linq.dll)
  System.Data.Linq (in System.Data.Linq.dll)

Syntax

'Declaration
<AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple := True, Inherited := False)> _
Public NotInheritable Class IndexAttribute _
    Inherits Attribute
[AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple = true, Inherited = false)]
public sealed class IndexAttribute : Attribute
[AttributeUsageAttribute(AttributeTargets::Class, AllowMultiple = true, Inherited = false)]
public ref class IndexAttribute sealed : public Attribute
[<Sealed>]
[<AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple = true, Inherited = false)>]
type IndexAttribute =  
    class 
        inherit Attribute 
    end

The IndexAttribute type exposes the following members.

Constructors

  Name Description
Public method IndexAttribute

Top

Properties

  Name Description
Public property Columns
Public property IsUnique
Public property Name

Top

Methods

  Name Description
Public method Equals Infrastructure. Returns a value that indicates whether this instance is equal to a specified object. (Inherited from Attribute.)
Public method GetHashCode Returns the hash code for this instance. (Inherited from Attribute.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method Match When overridden in a derived class, returns a value that indicates whether this instance equals a specified object. (Inherited from Attribute.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Version Information

.NET for Windows Phone apps

Supported in: Windows Phone 8, Windows Phone 8, Windows Phone 8, Windows Phone 8, Silverlight 8.1

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

Microsoft.Phone.Data.Linq.Mapping Namespace