MSDN Library

IgnorePropertiesAttribute Class

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


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.

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

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

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.)

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.
© 2016 Microsoft