Export (0) Print
Expand All

IgnorePropertiesAttribute Class

Controls the visibility of a property or properties by WCF Data Services.

System.Object
  System.Attribute
    System.Data.Services.IgnorePropertiesAttribute

Namespace:  System.Data.Services
Assembly:  Microsoft.Data.Services (in Microsoft.Data.Services.dll)

[AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple = false, Inherited = true)]
public sealed class IgnorePropertiesAttribute : Attribute

The IgnorePropertiesAttribute type exposes the following members.

  NameDescription
Public methodIgnorePropertiesAttribute(String)Initializes a new instance of the IgnorePropertiesAttribute class.
Public methodIgnorePropertiesAttribute(String[])Initializes a new instance of the IgnorePropertiesAttribute class.
Top

  NameDescription
Public propertyPropertyNamesGets or sets the property name or names to controlled by the IgnorePropertiesAttribute attribute.
Public propertyTypeId (Inherited from Attribute.)
Top

  NameDescription
Public methodEquals (Inherited from Attribute.)
Public methodGetHashCode (Inherited from Attribute.)
Public methodGetType (Inherited from Object.)
Public methodIsDefaultAttribute (Inherited from Attribute.)
Public methodMatch (Inherited from Attribute.)
Public methodToString (Inherited from Object.)
Top

When this attribute is placed on a type that represents an entity type in a data service, the property name specified by this attribute is not visible at the representational state transfer (REST) service level.

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